private void writeBool(byte[] buffer, ref int offset, object value) { offset = writeBytes(buffer, offset, Encoder.encodeBool(value)); }