write method

void write(
  1. EndianBinaryWriter writer
)

Implementation

void write(EndianBinaryWriter writer) {
  writer.writeByte(size);
  writer.writeByte(protocolVersion);
  writer.writeUInt16(profileVersion);
  writer.writeUInt32(dataSize);
  writer.writeBytes(Uint8List.fromList(utf8.encode(_dataType)));
  if (size == Fit.headerWithCrcSize) {
    writer.writeUInt16(crc);
  }
}