From that point everything is similar except you will need to flush the output stream or it is possible that the last bit of the stream buffer will not be sent.
从这一点来说,除了您将需要清空输出流(否则流缓冲区的最后一位可能会未被发送)之外,一切都很相似。
2
Most messages are not self-defining — Often, a model is needed to parse the message bitstream.
大多数消息不是自己定义的——通常,需要某个模型来解析消息位流。
3
The parser must understand both the physical format of the bitstream and its logical structure in order to create the logical message tree.