Source File
methods.go
Belonging Package
google.golang.org/protobuf/runtime/protoiface
package protoiface
import (
)
type Methods = struct {
pragma.NoUnkeyedLiterals
Size func(SizeInput) SizeOutput
Marshal func(MarshalInput) (MarshalOutput, error)
Unmarshal func(UnmarshalInput) (UnmarshalOutput, error)
Merge func(MergeInput) MergeOutput
type SupportFlags = uint64
type SizeInput = struct {
pragma.NoUnkeyedLiterals
Message protoreflect.Message
Flags MarshalInputFlags
}
type SizeOutput = struct {
pragma.NoUnkeyedLiterals
Size int
}
type MarshalInput = struct {
pragma.NoUnkeyedLiterals
Message protoreflect.Message
Buf []byte // output is appended to this buffer
Flags MarshalInputFlags
}
type MarshalOutput = struct {
pragma.NoUnkeyedLiterals
Buf []byte // contains marshaled message
}
type MarshalInputFlags = uint8
const (
MarshalDeterministic MarshalInputFlags = 1 << iota
MarshalUseCachedSize
)
type UnmarshalInput = struct {
pragma.NoUnkeyedLiterals
Message protoreflect.Message
Buf []byte // input buffer
Flags UnmarshalInputFlags
Resolver interface {
FindExtensionByName(field protoreflect.FullName) (protoreflect.ExtensionType, error)
FindExtensionByNumber(message protoreflect.FullName, field protoreflect.FieldNumber) (protoreflect.ExtensionType, error)
}
}
type UnmarshalOutput = struct {
pragma.NoUnkeyedLiterals
Flags UnmarshalOutputFlags
}
type UnmarshalInputFlags = uint8
const (
UnmarshalDiscardUnknown UnmarshalInputFlags = 1 << iota
)
type UnmarshalOutputFlags = uint8
UnmarshalInitialized UnmarshalOutputFlags = 1 << iota
)
type MergeInput = struct {
pragma.NoUnkeyedLiterals
Source protoreflect.Message
Destination protoreflect.Message
}
type MergeOutput = struct {
pragma.NoUnkeyedLiterals
Flags MergeOutputFlags
}
type MergeOutputFlags = uint8
MergeComplete MergeOutputFlags = 1 << iota
)
type CheckInitializedInput = struct {
pragma.NoUnkeyedLiterals
Message protoreflect.Message
}
type CheckInitializedOutput = struct {
pragma.NoUnkeyedLiterals
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |