applyToBuffer method
Implementation
@override
void applyToBuffer(ByteDataWriter buffer) {
final length = 6 + name.byteLength;
buffer
..writeUint8(ClientMessage.CloseIdentifier)
..writeInt32(length)
..writeUint8(isForPortal ? $P : $S);
name.applyToBuffer(buffer);
}