IBytes 用于区分传入的内存是否是复用内存,例如从网络中读取的数据,如果是复用内存,需要尽早复制
| 66 | |
| 67 | // IBytes 用于区分传入的内存是否是复用内存,例如从网络中读取的数据,如果是复用内存,需要尽早复制 |
| 68 | type IBytes interface { |
| 69 | Len() int |
| 70 | Bytes() []byte |
| 71 | Reuse() bool |
| 72 | } |
| 73 | type IBuffer interface { |
| 74 | Len() int |
| 75 | Bytes() []byte |
no outgoing calls
no test coverage detected