testSizeCheckUnmarshal

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTestStruct        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTestStruct          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTestStruct = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type TestStruct1

type TestStruct1 struct {
	Field1 uint64 `protobuf:"varint,1,opt,name=field1,proto3" json:"field1,omitempty"`
	Field2 []byte `protobuf:"bytes,2,opt,name=field2,proto3" json:"field2,omitempty"`
}

func (*TestStruct1) Descriptor

func (*TestStruct1) Descriptor() ([]byte, []int)

func (*TestStruct1) Equal

func (this *TestStruct1) Equal(that interface{}) bool

func (*TestStruct1) GetField1

func (m *TestStruct1) GetField1() uint64

func (*TestStruct1) GetField2

func (m *TestStruct1) GetField2() []byte

func (*TestStruct1) GoString

func (this *TestStruct1) GoString() string

func (*TestStruct1) Marshal

func (m *TestStruct1) Marshal() (dAtA []byte, err error)

func (*TestStruct1) MarshalTo

func (m *TestStruct1) MarshalTo(dAtA []byte) (int, error)

func (*TestStruct1) MarshalToSizedBuffer

func (m *TestStruct1) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TestStruct1) ProtoMessage

func (*TestStruct1) ProtoMessage()

func (*TestStruct1) Reset

func (m *TestStruct1) Reset()

func (*TestStruct1) Size

func (m *TestStruct1) Size() (n int)

func (*TestStruct1) String

func (this *TestStruct1) String() string

func (*TestStruct1) Unmarshal

func (m *TestStruct1) Unmarshal(dAtA []byte) error

func (*TestStruct1) XXX_DiscardUnknown

func (m *TestStruct1) XXX_DiscardUnknown()

func (*TestStruct1) XXX_Marshal

func (m *TestStruct1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestStruct1) XXX_Merge

func (m *TestStruct1) XXX_Merge(src proto.Message)

func (*TestStruct1) XXX_Size

func (m *TestStruct1) XXX_Size() int

func (*TestStruct1) XXX_Unmarshal

func (m *TestStruct1) XXX_Unmarshal(b []byte) error

type TestStruct2

type TestStruct2 struct {
	Field1 uint64 `protobuf:"varint,1,opt,name=field1,proto3" json:"field1,omitempty"`
	Field2 []byte `protobuf:"bytes,2,opt,name=field2,proto3" json:"field2,omitempty"`
	Field3 []byte `protobuf:"bytes,3,opt,name=field3,proto3" json:"field3,omitempty"`
}

func (*TestStruct2) Descriptor

func (*TestStruct2) Descriptor() ([]byte, []int)

func (*TestStruct2) Equal

func (this *TestStruct2) Equal(that interface{}) bool

func (*TestStruct2) GetField1

func (m *TestStruct2) GetField1() uint64

func (*TestStruct2) GetField2

func (m *TestStruct2) GetField2() []byte

func (*TestStruct2) GetField3

func (m *TestStruct2) GetField3() []byte

func (*TestStruct2) GoString

func (this *TestStruct2) GoString() string

func (*TestStruct2) Marshal

func (m *TestStruct2) Marshal() (dAtA []byte, err error)

func (*TestStruct2) MarshalTo

func (m *TestStruct2) MarshalTo(dAtA []byte) (int, error)

func (*TestStruct2) MarshalToSizedBuffer

func (m *TestStruct2) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TestStruct2) ProtoMessage

func (*TestStruct2) ProtoMessage()

func (*TestStruct2) Reset

func (m *TestStruct2) Reset()

func (*TestStruct2) Size

func (m *TestStruct2) Size() (n int)

func (*TestStruct2) String

func (this *TestStruct2) String() string

func (*TestStruct2) Unmarshal

func (m *TestStruct2) Unmarshal(dAtA []byte) error

func (*TestStruct2) XXX_DiscardUnknown

func (m *TestStruct2) XXX_DiscardUnknown()

func (*TestStruct2) XXX_Marshal

func (m *TestStruct2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestStruct2) XXX_Merge

func (m *TestStruct2) XXX_Merge(src proto.Message)

func (*TestStruct2) XXX_Size

func (m *TestStruct2) XXX_Size() int

func (*TestStruct2) XXX_Unmarshal

func (m *TestStruct2) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL