applyToBuffer method

  1. @override
void applyToBuffer(
  1. ByteDataWriter buffer
)
override

Implementation

@override
void applyToBuffer(ByteDataWriter buffer) {
  final length = 6 + name.byteLength;

  buffer
    ..writeUint8(ClientMessage.CloseIdentifier)
    ..writeInt32(length)
    ..writeUint8(isForPortal ? $P : $S);
  name.applyToBuffer(buffer);
}