Bytes converts a byte slice into fixed length slice. Result slice length is defined by Bytes.Size .
| 3 | // Bytes converts a byte slice into fixed length slice. |
| 4 | // Result slice length is defined by Bytes.Size . |
| 5 | type Bytes struct { |
| 6 | Size int |
| 7 | } |
| 8 | |
| 9 | // Encode converts byte slice to byte slice. |
| 10 | func (c Bytes) Encode(d interface{}) []byte { |
nothing calls this directly
no outgoing calls
no test coverage detected