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

// Unmarshal is the entry point from the generated .pb.go files.
// This function is not intended to be used by non-generated code.
// This function is not subject to any compatibility guarantee.
// msg contains a pointer to a protocol buffer struct.
// b is the data to be unmarshaled into the protocol buffer.
// a is a pointer to a place to store cached unmarshal information.
func (a *InternalMessageInfo) Unmarshal(msg Message, b []byte) error {}

type unmarshalInfo

type unmarshaler

type unmarshalFieldInfo

var unmarshalInfoMap

var unmarshalInfoLock

// getUnmarshalInfo returns the data structure which can be
// subsequently used to unmarshal a message of the given type.
// t is the type of the message (note: not pointer to message).
func getUnmarshalInfo(t reflect.Type) *unmarshalInfo {}

// unmarshal does the main work of unmarshaling a message.
// u provides type information used to unmarshal the message.
// m is a pointer to a protocol buffer message.
// b is a byte stream to unmarshal into m.
// This is top routine used when recursively unmarshaling submessages.
func (u *unmarshalInfo) unmarshal(m pointer, b []byte) error {}

// computeUnmarshalInfo fills in u with information for use
// in unmarshaling protocol buffers of type u.typ.
func (u *unmarshalInfo) computeUnmarshalInfo() {}

// setTag stores the unmarshal information for the given tag.
// tag = tag # for field
// field/unmarshal = unmarshal info for that field.
// reqMask = if required, bitmask for field position in required field list. 0 otherwise.
// name = short name of the field.
func (u *unmarshalInfo) setTag(tag int, field field, unmarshal unmarshaler, reqMask uint64, name string) {}

// fieldUnmarshaler returns an unmarshaler for the given field.
func fieldUnmarshaler(f *reflect.StructField) unmarshaler {}

// typeUnmarshaler returns an unmarshaler for the given field type / field tag pair.
func typeUnmarshaler(t reflect.Type, tags string) unmarshaler {}

func unmarshalInt64Value(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalInt64Ptr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalInt64Slice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalSint64Value(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalSint64Ptr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalSint64Slice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalUint64Value(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalUint64Ptr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalUint64Slice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalInt32Value(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalInt32Ptr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalInt32Slice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalSint32Value(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalSint32Ptr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalSint32Slice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalUint32Value(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalUint32Ptr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalUint32Slice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFixed64Value(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFixed64Ptr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFixed64Slice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFixedS64Value(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFixedS64Ptr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFixedS64Slice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFixed32Value(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFixed32Ptr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFixed32Slice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFixedS32Value(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFixedS32Ptr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFixedS32Slice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalBoolValue(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalBoolPtr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalBoolSlice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFloat64Value(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFloat64Ptr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFloat64Slice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFloat32Value(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFloat32Ptr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalFloat32Slice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalStringValue(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalStringPtr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalStringSlice(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalUTF8StringValue(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalUTF8StringPtr(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalUTF8StringSlice(b []byte, f pointer, w int) ([]byte, error) {}

var emptyBuf

func unmarshalBytesValue(b []byte, f pointer, w int) ([]byte, error) {}

func unmarshalBytesSlice(b []byte, f pointer, w int) ([]byte, error) {}

func makeUnmarshalMessagePtr(sub *unmarshalInfo, name string) unmarshaler {}

func makeUnmarshalMessageSlicePtr(sub *unmarshalInfo, name string) unmarshaler {}

func makeUnmarshalGroupPtr(sub *unmarshalInfo, name string) unmarshaler {}

func makeUnmarshalGroupSlicePtr(sub *unmarshalInfo, name string) unmarshaler {}

func makeUnmarshalMap(f *reflect.StructField) unmarshaler {}

// makeUnmarshalOneof makes an unmarshaler for oneof fields.
// for:
// message Msg {
//   oneof F {
//     int64 X = 1;
//     float64 Y = 2;
//   }
// }
// typ is the type of the concrete entry for a oneof case (e.g. Msg_X).
// ityp is the interface type of the oneof field (e.g. isMsg_F).
// unmarshal is the unmarshaler for the base type of the oneof case (e.g. int64).
// Note that this function will be called once for each case in the oneof.
func makeUnmarshalOneof(typ, ityp reflect.Type, unmarshal unmarshaler) unmarshaler {}

var errInternalBadWireType

// skipField skips past a field of type wire and returns the remaining bytes.
func skipField(b []byte, wire int) ([]byte, error) {}

// findEndGroup finds the index of the next EndGroup tag.
// Groups may be nested, so the "next" EndGroup tag is the first
// unpaired EndGroup.
// findEndGroup returns the indexes of the start and end of the EndGroup tag.
// Returns (-1,-1) if it can't find one.
func findEndGroup(b []byte) (int, int) {}

// encodeVarint appends a varint-encoded integer to b and returns the result.
func encodeVarint(b []byte, x uint64) []byte {}

// decodeVarint reads a varint-encoded integer from b.
// Returns the decoded integer and the number of bytes read.
// If there is an error, it returns 0,0.
func decodeVarint(b []byte) (uint64, int) {}