kubernetes/vendor/github.com/fxamacker/cbor/v2/bytestring.go

type ByteString

// Bytes returns bytes representing ByteString.
func (bs ByteString) Bytes() []byte {}

// MarshalCBOR encodes ByteString as CBOR byte string (major type 2).
func (bs ByteString) MarshalCBOR() ([]byte, error) {}

// UnmarshalCBOR decodes CBOR byte string (major type 2) to ByteString.
// Decoding CBOR null and CBOR undefined sets ByteString to be empty.
func (bs *ByteString) UnmarshalCBOR(data []byte) error {}