MCPcopy
hub / github.com/openacid/slim / Bytes

Struct Bytes

encode/bytes.go:5–7  ·  view source on GitHub ↗

Bytes converts a byte slice into fixed length slice. Result slice length is defined by Bytes.Size .

Source from the content-addressed store, hash-verified

3// Bytes converts a byte slice into fixed length slice.
4// Result slice length is defined by Bytes.Size .
5type Bytes struct {
6 Size int
7}
8
9// Encode converts byte slice to byte slice.
10func (c Bytes) Encode(d interface{}) []byte {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected