原文:https://www.jianshu.com/p/e53083132a25 Buffer 介绍 Buffer 是 bytes 包中的一个 type Buffer struct{…} A buffer is a variable-sized buffer of bytes with Read and Write methods. The zero value for Buffer is an empty buffer ready to use. (是一个变长的 buffer,具有 Read…
参考:中文维基 二进制 位操作(wiki) Byte字节 互联网数据处理:Base64数据编码 Python的模块Base64 16进制简介 python: bytes对象 字符集介绍:ascii 二进制简介: In mathematics and digital electronics, a binary number is a number expressed in the base-2 numberal system or binary numeral system, which uses…
一些类与方法说明 1)ByteBuf ByteBuf的API说明: Creation of a buffer It is recommended to create a new buffer using the helper methods in Unpooled rather than calling an individual implementation's constructor. 建议用Unpooled类的帮助方法来创建一个ByteBuf,而不是用new ByteBuf()创建.具体如…