pool

package
v0.0.0-...-5b3aae6 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_pool_pool_proto protoreflect.FileDescriptor
View Source
var File_pool_pool_with_slice_reuse_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Element2

type Element2 struct {
	A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*Element2) CloneMessageVT

func (m *Element2) CloneMessageVT() proto.Message

func (*Element2) CloneVT

func (m *Element2) CloneVT() *Element2

func (*Element2) Descriptor deprecated

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

Deprecated: Use Element2.ProtoReflect.Descriptor instead.

func (*Element2) EqualMessageVT

func (this *Element2) EqualMessageVT(thatMsg proto.Message) bool

func (*Element2) EqualVT

func (this *Element2) EqualVT(that *Element2) bool

func (*Element2) GetA

func (x *Element2) GetA() int32

func (*Element2) MarshalToSizedBufferVT

func (m *Element2) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Element2) MarshalToSizedBufferVTStrict

func (m *Element2) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)

func (*Element2) MarshalToVT

func (m *Element2) MarshalToVT(dAtA []byte) (int, error)

func (*Element2) MarshalToVTStrict

func (m *Element2) MarshalToVTStrict(dAtA []byte) (int, error)

func (*Element2) MarshalVT

func (m *Element2) MarshalVT() (dAtA []byte, err error)

func (*Element2) MarshalVTStrict

func (m *Element2) MarshalVTStrict() (dAtA []byte, err error)

func (*Element2) ProtoMessage

func (*Element2) ProtoMessage()

func (*Element2) ProtoReflect

func (x *Element2) ProtoReflect() protoreflect.Message

func (*Element2) Reset

func (x *Element2) Reset()

func (*Element2) SizeVT

func (m *Element2) SizeVT() (n int)

func (*Element2) String

func (x *Element2) String() string

func (*Element2) UnmarshalVT

func (m *Element2) UnmarshalVT(dAtA []byte) error

type MemoryPoolExtension

type MemoryPoolExtension struct {
	Foo1 string `protobuf:"bytes,1,opt,name=foo1,proto3" json:"foo1,omitempty"`
	Foo2 uint64 `protobuf:"varint,2,opt,name=foo2,proto3" json:"foo2,omitempty"`
	// contains filtered or unexported fields
}

func MemoryPoolExtensionFromVTPool

func MemoryPoolExtensionFromVTPool() *MemoryPoolExtension

func (*MemoryPoolExtension) CloneMessageVT

func (m *MemoryPoolExtension) CloneMessageVT() proto.Message

func (*MemoryPoolExtension) CloneVT

func (*MemoryPoolExtension) Descriptor deprecated

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

Deprecated: Use MemoryPoolExtension.ProtoReflect.Descriptor instead.

func (*MemoryPoolExtension) EqualMessageVT

func (this *MemoryPoolExtension) EqualMessageVT(thatMsg proto.Message) bool

func (*MemoryPoolExtension) EqualVT

func (this *MemoryPoolExtension) EqualVT(that *MemoryPoolExtension) bool

func (*MemoryPoolExtension) GetFoo1

func (x *MemoryPoolExtension) GetFoo1() string

func (*MemoryPoolExtension) GetFoo2

func (x *MemoryPoolExtension) GetFoo2() uint64

func (*MemoryPoolExtension) MarshalToSizedBufferVT

func (m *MemoryPoolExtension) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*MemoryPoolExtension) MarshalToSizedBufferVTStrict

func (m *MemoryPoolExtension) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)

func (*MemoryPoolExtension) MarshalToVT

func (m *MemoryPoolExtension) MarshalToVT(dAtA []byte) (int, error)

func (*MemoryPoolExtension) MarshalToVTStrict

func (m *MemoryPoolExtension) MarshalToVTStrict(dAtA []byte) (int, error)

func (*MemoryPoolExtension) MarshalVT

func (m *MemoryPoolExtension) MarshalVT() (dAtA []byte, err error)

func (*MemoryPoolExtension) MarshalVTStrict

func (m *MemoryPoolExtension) MarshalVTStrict() (dAtA []byte, err error)

func (*MemoryPoolExtension) ProtoMessage

func (*MemoryPoolExtension) ProtoMessage()

func (*MemoryPoolExtension) ProtoReflect

func (x *MemoryPoolExtension) ProtoReflect() protoreflect.Message

func (*MemoryPoolExtension) Reset

func (x *MemoryPoolExtension) Reset()

func (*MemoryPoolExtension) ResetVT

func (m *MemoryPoolExtension) ResetVT()

func (*MemoryPoolExtension) ReturnToVTPool

func (m *MemoryPoolExtension) ReturnToVTPool()

func (*MemoryPoolExtension) SizeVT

func (m *MemoryPoolExtension) SizeVT() (n int)

func (*MemoryPoolExtension) String

func (x *MemoryPoolExtension) String() string

func (*MemoryPoolExtension) UnmarshalVT

func (m *MemoryPoolExtension) UnmarshalVT(dAtA []byte) error

type Slice2

type Slice2 struct {
	A map[int64]int64 `` /* 145-byte string literal not displayed */
	B *int32          `protobuf:"varint,2,opt,name=b,proto3,oneof" json:"b,omitempty"`
	C []string        `protobuf:"bytes,3,rep,name=c,proto3" json:"c,omitempty"`
	D *Element2       `protobuf:"bytes,4,opt,name=d,proto3" json:"d,omitempty"`
	E string          `protobuf:"bytes,5,opt,name=e,proto3" json:"e,omitempty"`
	F int64           `protobuf:"varint,6,opt,name=f,proto3" json:"f,omitempty"`
	// contains filtered or unexported fields
}

func (*Slice2) CloneMessageVT

func (m *Slice2) CloneMessageVT() proto.Message

func (*Slice2) CloneVT

func (m *Slice2) CloneVT() *Slice2

func (*Slice2) Descriptor deprecated

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

Deprecated: Use Slice2.ProtoReflect.Descriptor instead.

func (*Slice2) EqualMessageVT

func (this *Slice2) EqualMessageVT(thatMsg proto.Message) bool

func (*Slice2) EqualVT

func (this *Slice2) EqualVT(that *Slice2) bool

func (*Slice2) GetA

func (x *Slice2) GetA() map[int64]int64

func (*Slice2) GetB

func (x *Slice2) GetB() int32

func (*Slice2) GetC

func (x *Slice2) GetC() []string

func (*Slice2) GetD

func (x *Slice2) GetD() *Element2

func (*Slice2) GetE

func (x *Slice2) GetE() string

func (*Slice2) GetF

func (x *Slice2) GetF() int64

func (*Slice2) MarshalToSizedBufferVT

func (m *Slice2) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Slice2) MarshalToSizedBufferVTStrict

func (m *Slice2) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)

func (*Slice2) MarshalToVT

func (m *Slice2) MarshalToVT(dAtA []byte) (int, error)

func (*Slice2) MarshalToVTStrict

func (m *Slice2) MarshalToVTStrict(dAtA []byte) (int, error)

func (*Slice2) MarshalVT

func (m *Slice2) MarshalVT() (dAtA []byte, err error)

func (*Slice2) MarshalVTStrict

func (m *Slice2) MarshalVTStrict() (dAtA []byte, err error)

func (*Slice2) ProtoMessage

func (*Slice2) ProtoMessage()

func (*Slice2) ProtoReflect

func (x *Slice2) ProtoReflect() protoreflect.Message

func (*Slice2) Reset

func (x *Slice2) Reset()

func (*Slice2) SizeVT

func (m *Slice2) SizeVT() (n int)

func (*Slice2) String

func (x *Slice2) String() string

func (*Slice2) UnmarshalVT

func (m *Slice2) UnmarshalVT(dAtA []byte) error

type Test1

type Test1 struct {
	Sl []string `protobuf:"bytes,1,rep,name=Sl,proto3" json:"Sl,omitempty"`
	// contains filtered or unexported fields
}

func Test1FromVTPool

func Test1FromVTPool() *Test1

func (*Test1) CloneMessageVT

func (m *Test1) CloneMessageVT() proto.Message

func (*Test1) CloneVT

func (m *Test1) CloneVT() *Test1

func (*Test1) Descriptor deprecated

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

Deprecated: Use Test1.ProtoReflect.Descriptor instead.

func (*Test1) EqualMessageVT

func (this *Test1) EqualMessageVT(thatMsg proto.Message) bool

func (*Test1) EqualVT

func (this *Test1) EqualVT(that *Test1) bool

func (*Test1) GetSl

func (x *Test1) GetSl() []string

func (*Test1) MarshalToSizedBufferVT

func (m *Test1) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Test1) MarshalToSizedBufferVTStrict

func (m *Test1) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)

func (*Test1) MarshalToVT

func (m *Test1) MarshalToVT(dAtA []byte) (int, error)

func (*Test1) MarshalToVTStrict

func (m *Test1) MarshalToVTStrict(dAtA []byte) (int, error)

func (*Test1) MarshalVT

func (m *Test1) MarshalVT() (dAtA []byte, err error)

func (*Test1) MarshalVTStrict

func (m *Test1) MarshalVTStrict() (dAtA []byte, err error)

func (*Test1) ProtoMessage

func (*Test1) ProtoMessage()

func (*Test1) ProtoReflect

func (x *Test1) ProtoReflect() protoreflect.Message

func (*Test1) Reset

func (x *Test1) Reset()

func (*Test1) ResetVT

func (m *Test1) ResetVT()

func (*Test1) ReturnToVTPool

func (m *Test1) ReturnToVTPool()

func (*Test1) SizeVT

func (m *Test1) SizeVT() (n int)

func (*Test1) String

func (x *Test1) String() string

func (*Test1) UnmarshalVT

func (m *Test1) UnmarshalVT(dAtA []byte) error

type Test2

type Test2 struct {
	Sl []*Slice2 `protobuf:"bytes,1,rep,name=Sl,proto3" json:"Sl,omitempty"`
	// contains filtered or unexported fields
}

func Test2FromVTPool

func Test2FromVTPool() *Test2

func (*Test2) CloneMessageVT

func (m *Test2) CloneMessageVT() proto.Message

func (*Test2) CloneVT

func (m *Test2) CloneVT() *Test2

func (*Test2) Descriptor deprecated

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

Deprecated: Use Test2.ProtoReflect.Descriptor instead.

func (*Test2) EqualMessageVT

func (this *Test2) EqualMessageVT(thatMsg proto.Message) bool

func (*Test2) EqualVT

func (this *Test2) EqualVT(that *Test2) bool

func (*Test2) GetSl

func (x *Test2) GetSl() []*Slice2

func (*Test2) MarshalToSizedBufferVT

func (m *Test2) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Test2) MarshalToSizedBufferVTStrict

func (m *Test2) MarshalToSizedBufferVTStrict(dAtA []byte) (int, error)

func (*Test2) MarshalToVT

func (m *Test2) MarshalToVT(dAtA []byte) (int, error)

func (*Test2) MarshalToVTStrict

func (m *Test2) MarshalToVTStrict(dAtA []byte) (int, error)

func (*Test2) MarshalVT

func (m *Test2) MarshalVT() (dAtA []byte, err error)

func (*Test2) MarshalVTStrict

func (m *Test2) MarshalVTStrict() (dAtA []byte, err error)

func (*Test2) ProtoMessage

func (*Test2) ProtoMessage()

func (*Test2) ProtoReflect

func (x *Test2) ProtoReflect() protoreflect.Message

func (*Test2) Reset

func (x *Test2) Reset()

func (*Test2) ResetVT

func (m *Test2) ResetVT()

func (*Test2) ReturnToVTPool

func (m *Test2) ReturnToVTPool()

func (*Test2) SizeVT

func (m *Test2) SizeVT() (n int)

func (*Test2) String

func (x *Test2) String() string

func (*Test2) UnmarshalVT

func (m *Test2) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

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