Documentation ¶
Index ¶
Constants ¶
View Source
const JspbPackageIsVersion2 = true
JspbPackageIsVersion2 is referenced from generated protocol buffer files to assert that that code is compatible with this version of the package.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader interface { Next() bool Err() error GetFieldNumber() int SkipField() // Scalars ReadInt32() int32 ReadInt64() int64 ReadUint32() uint32 ReadUint64() uint64 ReadSint32() int32 ReadSint64() int64 ReadFixed32() uint32 ReadFixed64() uint64 ReadSfixed32() int32 ReadSfixed64() int64 ReadFloat32() float32 ReadFloat64() float64 ReadEnum() int ReadBool() bool ReadString() string ReadBytes() []byte // Scalar Slices ReadInt32Slice() []int32 ReadInt64Slice() []int64 ReadUint32Slice() []uint32 ReadUint64Slice() []uint64 ReadSint32Slice() []int32 ReadSint64Slice() []int64 ReadFixed32Slice() []uint32 ReadFixed64Slice() []uint64 ReadSfixed32Slice() []int32 ReadSfixed64Slice() []int64 ReadFloat32Slice() []float32 ReadFloat64Slice() []float64 ReadEnumSlice() []int ReadBoolSlice() []bool // Specials ReadMessage(func()) }
Reader encapsulates the jspb.BinaryReader.
type Writer ¶
type Writer interface { GetResult() []byte // Scalars WriteInt32(int, int32) WriteInt64(int, int64) WriteUint32(int, uint32) WriteUint64(int, uint64) WriteSint32(int, int32) WriteSint64(int, int64) WriteFixed32(int, uint32) WriteFixed64(int, uint64) WriteSfixed32(int, int32) WriteSfixed64(int, int64) WriteFloat32(int, float32) WriteFloat64(int, float64) WriteEnum(int, int) WriteBool(int, bool) WriteString(int, string) WriteBytes(int, []byte) // Scalar Slices WriteInt32Slice(int, []int32) WriteInt64Slice(int, []int64) WriteUint32Slice(int, []uint32) WriteUint64Slice(int, []uint64) WriteSint32Slice(int, []int32) WriteSint64Slice(int, []int64) WriteFixed32Slice(int, []uint32) WriteFixed64Slice(int, []uint64) WriteSfixed32Slice(int, []int32) WriteSfixed64Slice(int, []int64) WriteFloat32Slice(int, []float32) WriteFloat64Slice(int, []float64) WriteBoolSlice(int, []bool) WriteEnumSlice(int, []int) // Specials WriteMessage(int, func()) }
Writer encapsulates the jspb.BinaryWriter.
Click to show internal directories.
Click to hide internal directories.