Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Subtests = []func(t *testing.T, mer marsha.Marsha){ SubTestBasic, SubTestEncoderDecoder, }
Functions ¶
func SubTestAll ¶ added in v0.0.2
func SubTestBasic ¶ added in v0.0.2
func SubTestEncoderDecoder ¶ added in v0.0.2
Types ¶
type TestStruct ¶
type TestStruct struct {
Data string
}
func (*TestStruct) InitNilEmbeddedStruct ¶
func (t *TestStruct) InitNilEmbeddedStruct()
func (*TestStruct) MarshalCBOR ¶
func (t *TestStruct) MarshalCBOR(w io.Writer) (n int, err error)
func (TestStruct) Ptr ¶
func (s TestStruct) Ptr() marsha.StructPtr
func (*TestStruct) UnmarshalCBOR ¶
func (t *TestStruct) UnmarshalCBOR(r io.Reader) (int, error)
func (*TestStruct) Val ¶
func (s *TestStruct) Val() marsha.Struct
type TestStruct2 ¶
type TestStruct2 struct {
Data2 int64
}
func (*TestStruct2) InitNilEmbeddedStruct ¶
func (t *TestStruct2) InitNilEmbeddedStruct()
func (*TestStruct2) MarshalCBOR ¶
func (t *TestStruct2) MarshalCBOR(w io.Writer) (n int, err error)
func (TestStruct2) Ptr ¶
func (s TestStruct2) Ptr() marsha.StructPtr
func (*TestStruct2) UnmarshalCBOR ¶
func (t *TestStruct2) UnmarshalCBOR(r io.Reader) (int, error)
func (*TestStruct2) Val ¶
func (s *TestStruct2) Val() marsha.Struct
type TestStructs ¶
type TestStructs []TestStruct
func (*TestStructs) Append ¶
func (s *TestStructs) Append(m cborgen.StructPtr)
func (*TestStructs) NewStructPtr ¶ added in v0.0.2
func (*TestStructs) NewStructPtr() marsha.StructPtr
func (*TestStructs) Val ¶
func (s *TestStructs) Val() []marsha.StructPtr
Click to show internal directories.
Click to hide internal directories.