Bytes is an interface implemented by types that represent immutable sequences of bytes. Bytes values are used to abstract the location where record keys and values are read from (e.g. in-memory buffers, network sockets, files). The Close method should be called to release resources held by the obj
| 22 | // Bytes values are generally not safe to use concurrently from multiple |
| 23 | // goroutines. |
| 24 | type Bytes interface { |
| 25 | io.ReadCloser |
| 26 | // Returns the number of bytes remaining to be read from the payload. |
| 27 | Len() int |
| 28 | } |
| 29 | |
| 30 | // NewBytes constructs a Bytes value from b. |
| 31 | // |
no outgoing calls
no test coverage detected