Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteSliceToRef ¶
ByteSliceToRef converts a byte slice cursor into a block.BlockRef. If the cursor or byte slice is empty & apply is set, sets a empty ref. If apply is set, updates the block cursor to hold a BlockRef object.
func NewByteSliceBlock ¶
NewByteSliceBlock constructs a new byte slice block.
Types ¶
type ByteSlice ¶
type ByteSlice struct {
// contains filtered or unexported fields
}
ByteSlice is a byte slice sub-block.
func NewByteSlice ¶
NewByteSlice constructs a new sub-block from a byte slice.
If sl is nil, returns nil.
func (*ByteSlice) MarshalBlock ¶
MarshalBlock marshals the block to binary. This is the initial step of marshaling, before transformations.
func (*ByteSlice) UnmarshalBlock ¶
UnmarshalBlock unmarshals the block to the object. This is the final step of decoding, after transformations.
Click to show internal directories.
Click to hide internal directories.