kubernetes/vendor/github.com/gogo/protobuf/proto/table_marshal.go

type sizer

type marshaler

type marshalInfo

type marshalFieldInfo

type marshalElemInfo

var marshalInfoMap

var marshalInfoLock

var uint8SliceType

// getMarshalInfo returns the information to marshal a given type of message.
// The info it returns may not necessarily initialized.
// t is the type of the message (NOT the pointer to it).
func getMarshalInfo(t reflect.Type) *marshalInfo {}

// Size is the entry point from generated code,
// and should be ONLY called by generated code.
// It computes the size of encoded data of msg.
// a is a pointer to a place to store cached marshal info.
func (a *InternalMessageInfo) Size(msg Message) int {}

// Marshal is the entry point from generated code,
// and should be ONLY called by generated code.
// It marshals msg to the end of b.
// a is a pointer to a place to store cached marshal info.
func (a *InternalMessageInfo) Marshal(b []byte, msg Message, deterministic bool) ([]byte, error) {}

func getMessageMarshalInfo(msg interface{}

// size is the main function to compute the size of the encoded data of a message.
// ptr is the pointer to the message.
func (u *marshalInfo) size(ptr pointer) int {}

// cachedsize gets the size from cache. If there is no cache (i.e. message is not generated),
// fall back to compute the size.
func (u *marshalInfo) cachedsize(ptr pointer) int {}

// marshal is the main function to marshal a message. It takes a byte slice and appends
// the encoded data to the end of the slice, returns the slice and error (if any).
// ptr is the pointer to the message.
// If deterministic is true, map is marshaled in deterministic order.
func (u *marshalInfo) marshal(b []byte, ptr pointer, deterministic bool) ([]byte, error) {}

// computeMarshalInfo initializes the marshal info.
func (u *marshalInfo) computeMarshalInfo() {}

type byTag

func (a byTag) Len() int           {}

func (a byTag) Swap(i, j int)      {}

func (a byTag) Less(i, j int) bool {}

// getExtElemInfo returns the information to marshal an extension element.
// The info it returns is initialized.
func (u *marshalInfo) getExtElemInfo(desc *ExtensionDesc) *marshalElemInfo {}

// computeMarshalFieldInfo fills up the information to marshal a field.
func (fi *marshalFieldInfo) computeMarshalFieldInfo(f *reflect.StructField) {}

func (fi *marshalFieldInfo) computeOneofFieldInfo(f *reflect.StructField, oneofImplementers []interface{}

// wiretype returns the wire encoding of the type.
func wiretype(encoding string) uint64 {}

// setTag fills up the tag (in wire format) and its size in the info of a field.
func (fi *marshalFieldInfo) setTag(f *reflect.StructField, tag int, wt uint64) {}

// setMarshaler fills up the sizer and marshaler in the info of a field.
func (fi *marshalFieldInfo) setMarshaler(f *reflect.StructField, tags []string) {}

// typeMarshaler returns the sizer and marshaler of a given field.
// t is the type of the field.
// tags is the generated "protobuf" tag of the field.
// If nozero is true, zero value is not marshaled to the wire.
// If oneof is true, it is a oneof field.
func typeMarshaler(t reflect.Type, tags []string, nozero, oneof bool) (sizer, marshaler) {}

func sizeFixed32Value(_ pointer, tagsize int) int {}

func sizeFixed32ValueNoZero(ptr pointer, tagsize int) int {}

func sizeFixed32Ptr(ptr pointer, tagsize int) int {}

func sizeFixed32Slice(ptr pointer, tagsize int) int {}

func sizeFixed32PackedSlice(ptr pointer, tagsize int) int {}

func sizeFixedS32Value(_ pointer, tagsize int) int {}

func sizeFixedS32ValueNoZero(ptr pointer, tagsize int) int {}

func sizeFixedS32Ptr(ptr pointer, tagsize int) int {}

func sizeFixedS32Slice(ptr pointer, tagsize int) int {}

func sizeFixedS32PackedSlice(ptr pointer, tagsize int) int {}

func sizeFloat32Value(_ pointer, tagsize int) int {}

func sizeFloat32ValueNoZero(ptr pointer, tagsize int) int {}

func sizeFloat32Ptr(ptr pointer, tagsize int) int {}

func sizeFloat32Slice(ptr pointer, tagsize int) int {}

func sizeFloat32PackedSlice(ptr pointer, tagsize int) int {}

func sizeFixed64Value(_ pointer, tagsize int) int {}

func sizeFixed64ValueNoZero(ptr pointer, tagsize int) int {}

func sizeFixed64Ptr(ptr pointer, tagsize int) int {}

func sizeFixed64Slice(ptr pointer, tagsize int) int {}

func sizeFixed64PackedSlice(ptr pointer, tagsize int) int {}

func sizeFixedS64Value(_ pointer, tagsize int) int {}

func sizeFixedS64ValueNoZero(ptr pointer, tagsize int) int {}

func sizeFixedS64Ptr(ptr pointer, tagsize int) int {}

func sizeFixedS64Slice(ptr pointer, tagsize int) int {}

func sizeFixedS64PackedSlice(ptr pointer, tagsize int) int {}

func sizeFloat64Value(_ pointer, tagsize int) int {}

func sizeFloat64ValueNoZero(ptr pointer, tagsize int) int {}

func sizeFloat64Ptr(ptr pointer, tagsize int) int {}

func sizeFloat64Slice(ptr pointer, tagsize int) int {}

func sizeFloat64PackedSlice(ptr pointer, tagsize int) int {}

func sizeVarint32Value(ptr pointer, tagsize int) int {}

func sizeVarint32ValueNoZero(ptr pointer, tagsize int) int {}

func sizeVarint32Ptr(ptr pointer, tagsize int) int {}

func sizeVarint32Slice(ptr pointer, tagsize int) int {}

func sizeVarint32PackedSlice(ptr pointer, tagsize int) int {}

func sizeVarintS32Value(ptr pointer, tagsize int) int {}

func sizeVarintS32ValueNoZero(ptr pointer, tagsize int) int {}

func sizeVarintS32Ptr(ptr pointer, tagsize int) int {}

func sizeVarintS32Slice(ptr pointer, tagsize int) int {}

func sizeVarintS32PackedSlice(ptr pointer, tagsize int) int {}

func sizeVarint64Value(ptr pointer, tagsize int) int {}

func sizeVarint64ValueNoZero(ptr pointer, tagsize int) int {}

func sizeVarint64Ptr(ptr pointer, tagsize int) int {}

func sizeVarint64Slice(ptr pointer, tagsize int) int {}

func sizeVarint64PackedSlice(ptr pointer, tagsize int) int {}

func sizeVarintS64Value(ptr pointer, tagsize int) int {}

func sizeVarintS64ValueNoZero(ptr pointer, tagsize int) int {}

func sizeVarintS64Ptr(ptr pointer, tagsize int) int {}

func sizeVarintS64Slice(ptr pointer, tagsize int) int {}

func sizeVarintS64PackedSlice(ptr pointer, tagsize int) int {}

func sizeZigzag32Value(ptr pointer, tagsize int) int {}

func sizeZigzag32ValueNoZero(ptr pointer, tagsize int) int {}

func sizeZigzag32Ptr(ptr pointer, tagsize int) int {}

func sizeZigzag32Slice(ptr pointer, tagsize int) int {}

func sizeZigzag32PackedSlice(ptr pointer, tagsize int) int {}

func sizeZigzag64Value(ptr pointer, tagsize int) int {}

func sizeZigzag64ValueNoZero(ptr pointer, tagsize int) int {}

func sizeZigzag64Ptr(ptr pointer, tagsize int) int {}

func sizeZigzag64Slice(ptr pointer, tagsize int) int {}

func sizeZigzag64PackedSlice(ptr pointer, tagsize int) int {}

func sizeBoolValue(_ pointer, tagsize int) int {}

func sizeBoolValueNoZero(ptr pointer, tagsize int) int {}

func sizeBoolPtr(ptr pointer, tagsize int) int {}

func sizeBoolSlice(ptr pointer, tagsize int) int {}

func sizeBoolPackedSlice(ptr pointer, tagsize int) int {}

func sizeStringValue(ptr pointer, tagsize int) int {}

func sizeStringValueNoZero(ptr pointer, tagsize int) int {}

func sizeStringPtr(ptr pointer, tagsize int) int {}

func sizeStringSlice(ptr pointer, tagsize int) int {}

func sizeBytes(ptr pointer, tagsize int) int {}

func sizeBytes3(ptr pointer, tagsize int) int {}

func sizeBytesOneof(ptr pointer, tagsize int) int {}

func sizeBytesSlice(ptr pointer, tagsize int) int {}

// appendFixed32 appends an encoded fixed32 to b.
func appendFixed32(b []byte, v uint32) []byte {}

// appendFixed64 appends an encoded fixed64 to b.
func appendFixed64(b []byte, v uint64) []byte {}

// appendVarint appends an encoded varint to b.
func appendVarint(b []byte, v uint64) []byte {}

func appendFixed32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixed32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixed32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixed32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixed32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixedS32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixedS32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixedS32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixedS32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixedS32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFloat32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFloat32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFloat32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFloat32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFloat32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixed64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixed64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixed64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixed64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixed64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixedS64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixedS64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixedS64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixedS64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFixedS64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFloat64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFloat64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFloat64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFloat64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendFloat64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarint32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarint32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarint32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarint32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarint32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarintS32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarintS32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarintS32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarintS32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarintS32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarint64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarint64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarint64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarint64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarint64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarintS64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarintS64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarintS64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarintS64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendVarintS64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendZigzag32Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendZigzag32ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendZigzag32Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendZigzag32Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendZigzag32PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendZigzag64Value(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendZigzag64ValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendZigzag64Ptr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendZigzag64Slice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendZigzag64PackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendBoolValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendBoolValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendBoolPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendBoolSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendBoolPackedSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendStringValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendStringValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendStringPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendStringSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendUTF8StringValue(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendUTF8StringValueNoZero(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendUTF8StringPtr(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendUTF8StringSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendBytes(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendBytes3(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendBytesOneof(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

func appendBytesSlice(b []byte, ptr pointer, wiretag uint64, _ bool) ([]byte, error) {}

// makeGroupMarshaler returns the sizer and marshaler for a group.
// u is the marshal info of the underlying message.
func makeGroupMarshaler(u *marshalInfo) (sizer, marshaler) {}

// makeGroupSliceMarshaler returns the sizer and marshaler for a group slice.
// u is the marshal info of the underlying message.
func makeGroupSliceMarshaler(u *marshalInfo) (sizer, marshaler) {}

// makeMessageMarshaler returns the sizer and marshaler for a message field.
// u is the marshal info of the message.
func makeMessageMarshaler(u *marshalInfo) (sizer, marshaler) {}

// makeMessageSliceMarshaler returns the sizer and marshaler for a message slice.
// u is the marshal info of the message.
func makeMessageSliceMarshaler(u *marshalInfo) (sizer, marshaler) {}

// makeMapMarshaler returns the sizer and marshaler for a map field.
// f is the pointer to the reflect data structure of the field.
func makeMapMarshaler(f *reflect.StructField) (sizer, marshaler) {}

// makeOneOfMarshaler returns the sizer and marshaler for a oneof field.
// fi is the marshal info of the field.
// f is the pointer to the reflect data structure of the field.
func makeOneOfMarshaler(fi *marshalFieldInfo, f *reflect.StructField) (sizer, marshaler) {}

// sizeExtensions computes the size of encoded data for a XXX_InternalExtensions field.
func (u *marshalInfo) sizeExtensions(ext *XXX_InternalExtensions) int {}

// appendExtensions marshals a XXX_InternalExtensions field to the end of byte slice b.
func (u *marshalInfo) appendExtensions(b []byte, ext *XXX_InternalExtensions, deterministic bool) ([]byte, error) {}

// sizeMessageSet computes the size of encoded data for a XXX_InternalExtensions field
// in message set format (above).
func (u *marshalInfo) sizeMessageSet(ext *XXX_InternalExtensions) int {}

// appendMessageSet marshals a XXX_InternalExtensions field in message set format (above)
// to the end of byte slice b.
func (u *marshalInfo) appendMessageSet(b []byte, ext *XXX_InternalExtensions, deterministic bool) ([]byte, error) {}

// sizeV1Extensions computes the size of encoded data for a V1-API extension field.
func (u *marshalInfo) sizeV1Extensions(m map[int32]Extension) int {}

// appendV1Extensions marshals a V1-API extension field to the end of byte slice b.
func (u *marshalInfo) appendV1Extensions(b []byte, m map[int32]Extension, deterministic bool) ([]byte, error) {}

type newMarshaler

// Size returns the encoded size of a protocol buffer message.
// This is the main entry point.
func Size(pb Message) int {}

// Marshal takes a protocol buffer message
// and encodes it into the wire format, returning the data.
// This is the main entry point.
func Marshal(pb Message) ([]byte, error) {}

// Marshal takes a protocol buffer message
// and encodes it into the wire format, writing the result to the
// Buffer.
// This is an alternative entry point. It is not necessary to use
// a Buffer for most applications.
func (p *Buffer) Marshal(pb Message) error {}

// grow grows the buffer's capacity, if necessary, to guarantee space for
// another n bytes. After grow(n), at least n bytes can be written to the
// buffer without another allocation.
func (p *Buffer) grow(n int) {}