writeArrayHeader method

void writeArrayHeader(
  1. int count
)

Implementation

void writeArrayHeader(int count) {
  if (count <= MessagePackRange.maxFixArrayCount) {
    _bytesBuilder.addByte(MessagePackCode.minFixArray | count);
  } else if (count <= _maxUint16) {
    _bytesBuilder.addByte(MessagePackCode.array16);
    _writeBigEndianShort(count);
  } else {
    _bytesBuilder.addByte(MessagePackCode.array32);
    _writeBigEndianInt(count);
  }
}