private unsafe void WriteKeyBytes(byte lastValueByteCount, ulong keyBytes) { DEBUG.Assert(lastValueByteCount != 0 && lastValueByteCount <= 8); if (lastValueByteCount == 8) { writer.WriteWithOutTypeHead(keyBytes); } else { writer.WriteRaw64(keyBytes, lastValueByteCount); } }