Documentation
¶
Index ¶
Constants ¶
View Source
const Thingc = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeferredContainer ¶
type DeferredContainer struct { Stuff *SimpleTypeOne Deferred *cbg.Deferred Value uint64 }
func (*DeferredContainer) MarshalCBOR ¶
func (t *DeferredContainer) MarshalCBOR(w io.Writer) (n int, err error)
func (*DeferredContainer) UnmarshalCBOR ¶
func (t *DeferredContainer) UnmarshalCBOR(r io.Reader) (int, error)
type FixedArrays ¶
func (*FixedArrays) MarshalCBOR ¶
func (t *FixedArrays) MarshalCBOR(w io.Writer) (n int, err error)
func (*FixedArrays) UnmarshalCBOR ¶
func (t *FixedArrays) UnmarshalCBOR(r io.Reader) (int, error)
type NamedNumber ¶
type NamedNumber uint64
type NamedString ¶
type NamedString string
type NeedScratchForMap ¶
type NeedScratchForMap struct {
Thing bool
}
Do not add fields to this type.
func (*NeedScratchForMap) MarshalCBOR ¶
func (t *NeedScratchForMap) MarshalCBOR(w io.Writer) (n int, err error)
func (*NeedScratchForMap) UnmarshalCBOR ¶
func (t *NeedScratchForMap) UnmarshalCBOR(r io.Reader) (int, error)
type RenamedFields ¶ added in v0.0.3
func (*RenamedFields) MarshalCBOR ¶ added in v0.0.3
func (t *RenamedFields) MarshalCBOR(w io.Writer) (n int, err error)
func (*RenamedFields) UnmarshalCBOR ¶ added in v0.0.3
func (t *RenamedFields) UnmarshalCBOR(r io.Reader) (int, error)
type SignedArray ¶
type SignedArray struct {
Signed []uint64
}
func (*SignedArray) MarshalCBOR ¶
func (t *SignedArray) MarshalCBOR(w io.Writer) (n int, err error)
func (*SignedArray) UnmarshalCBOR ¶
func (t *SignedArray) UnmarshalCBOR(r io.Reader) (int, error)
type SimpleStructV1 ¶
type SimpleStructV1 struct { OldStr string OldBytes []byte OldNum uint64 OldPtr *cid.Cid OldMap map[string]SimpleTypeOne OldArray []SimpleTypeOne OldStruct SimpleTypeOne }
func (*SimpleStructV1) MarshalCBOR ¶
func (t *SimpleStructV1) MarshalCBOR(w io.Writer) (n int, err error)
func (*SimpleStructV1) UnmarshalCBOR ¶
func (t *SimpleStructV1) UnmarshalCBOR(r io.Reader) (int, error)
type SimpleStructV2 ¶
type SimpleStructV2 struct { OldStr string NewStr string OldBytes []byte NewBytes []byte OldNum uint64 NewNum uint64 OldPtr *cid.Cid NewPtr *cid.Cid OldMap map[string]SimpleTypeOne NewMap map[string]SimpleTypeOne OldArray []SimpleTypeOne NewArray []SimpleTypeOne OldStruct SimpleTypeOne NewStruct SimpleTypeOne }
func (*SimpleStructV2) MarshalCBOR ¶
func (t *SimpleStructV2) MarshalCBOR(w io.Writer) (n int, err error)
func (*SimpleStructV2) UnmarshalCBOR ¶
func (t *SimpleStructV2) UnmarshalCBOR(r io.Reader) (int, error)
type SimpleTypeOne ¶
type SimpleTypeOne struct { Foo string Value uint64 Binary []byte Signed int64 NString NamedString U8 uint8 U16 uint16 U32 uint32 I8 int8 I16 int16 I32 int32 }
func (*SimpleTypeOne) InitNilEmbeddedStruct ¶
func (t *SimpleTypeOne) InitNilEmbeddedStruct()
func (*SimpleTypeOne) MarshalCBOR ¶
func (t *SimpleTypeOne) MarshalCBOR(w io.Writer) (n int, err error)
func (*SimpleTypeOne) UnmarshalCBOR ¶
func (t *SimpleTypeOne) UnmarshalCBOR(r io.Reader) (int, error)
type SimpleTypeTree ¶
type SimpleTypeTree struct { Stuff *SimpleTypeTree Stufff *SimpleTypeTwo Others []uint64 Test [][]byte Dog string SixtyThreeBitIntegerWithASignBit int64 NotPizza *uint64 }
func (*SimpleTypeTree) InitNilEmbeddedStruct ¶
func (t *SimpleTypeTree) InitNilEmbeddedStruct()
func (*SimpleTypeTree) MarshalCBOR ¶
func (t *SimpleTypeTree) MarshalCBOR(w io.Writer) (n int, err error)
func (*SimpleTypeTree) UnmarshalCBOR ¶
func (t *SimpleTypeTree) UnmarshalCBOR(r io.Reader) (int, error)
type SimpleTypeTwo ¶
type SimpleTypeTwo struct { Stuff *SimpleTypeTwo Others []uint64 SignedOthers []int64 Test [][]byte Dog string Numbers []NamedNumber Pizza *uint64 PointyPizza *NamedNumber Arrrrrghay [Thingc]SimpleTypeOne }
func (*SimpleTypeTwo) InitNilEmbeddedStruct ¶
func (t *SimpleTypeTwo) InitNilEmbeddedStruct()
func (*SimpleTypeTwo) MarshalCBOR ¶
func (t *SimpleTypeTwo) MarshalCBOR(w io.Writer) (n int, err error)
func (*SimpleTypeTwo) UnmarshalCBOR ¶
func (t *SimpleTypeTwo) UnmarshalCBOR(r io.Reader) (int, error)
type ThingWithSomeTime ¶
func (*ThingWithSomeTime) MarshalCBOR ¶
func (t *ThingWithSomeTime) MarshalCBOR(w io.Writer) (n int, err error)
func (*ThingWithSomeTime) UnmarshalCBOR ¶
func (t *ThingWithSomeTime) UnmarshalCBOR(r io.Reader) (int, error)
Click to show internal directories.
Click to hide internal directories.