Documentation
¶
Overview ¶
Code generated by tl2gen; DO NOT EDIT.
Code generated by tl2gen; DO NOT EDIT.
Index ¶
- Constants
- func BasicTL2Content(headerComment string, packageName string) string
- func BasicTLContent(headerComment string, packageName string) string
- func ByteBoolReadTL2(r []byte, b *bool) (_ []byte, err error)
- func ByteBoolWriteTL2(w []byte, b bool) []byte
- func ByteRead(r []byte, b *byte) ([]byte, error)
- func ByteReadTL2(r []byte, b *byte) ([]byte, error)
- func ByteWrite(w []byte, b byte) []byte
- func ByteWriteTL2(w []byte, b byte) []byte
- func CheckLengthSanity(r []byte, natParam uint32, minObjectSize uint32) error
- func DoubleRead(r []byte, dst *float64) ([]byte, error)
- func DoubleWrite(w []byte, v float64) []byte
- func FloatRead(r []byte, dst *float32) ([]byte, error)
- func FloatWrite(w []byte, v float32) []byte
- func IntRead(r []byte, dst *int32) ([]byte, error)
- func IntWrite(w []byte, v int32) []byte
- func JSONAddCommaIfNeeded(w []byte) []byte
- func JSONWriteBool(w []byte, v bool) []byte
- func JSONWriteByte(w []byte, v byte) []byte
- func JSONWriteFloat32(w []byte, v float32) []byte
- func JSONWriteFloat64(w []byte, v float64) []byte
- func JSONWriteInt32(w []byte, v int32) []byte
- func JSONWriteInt64(w []byte, v int64) []byte
- func JSONWriteString(w []byte, s string) []byte
- func JSONWriteStringBytes(w []byte, s []byte) []byte
- func JSONWriteUint32(w []byte, v uint32) []byte
- func JSONWriteUint64(w []byte, v uint64) []byte
- func LongRead(r []byte, dst *int64) ([]byte, error)
- func LongWrite(w []byte, v int64) []byte
- func MaybeBoolWriteTL2(w []byte, b bool) []byte
- func NatPeekTag(r []byte) (uint32, error)
- func NatRead(r []byte, dst *uint32) ([]byte, error)
- func NatReadExactTag(r []byte, tag uint32) ([]byte, error)
- func NatReadTag(r []byte) (uint32, []byte, error)
- func NatWrite(w []byte, v uint32) []byte
- func RandomByte(rg *RandGenerator) byte
- func RandomDouble(rg *RandGenerator) float64
- func RandomFieldMask(rg *RandGenerator, bitMask uint32) uint32
- func RandomFloat(rg *RandGenerator) float32
- func RandomInt(rg *RandGenerator) int32
- func RandomLong(rg *RandGenerator) int64
- func RandomSize(rg *RandGenerator) uint32
- func RandomString(rg *RandGenerator) string
- func RandomStringBytes(rg *RandGenerator) []byte
- func RandomUint(rg *RandGenerator) uint32
- func RandomUint64(rg *RandGenerator) uint64
- func ReadBool(r []byte, v *bool, falseTag uint32, trueTag uint32) ([]byte, error)
- func SkipFixedSizedValue(r []byte, l int) (_ []byte, err error)
- func SkipSizedValue(r []byte) (_ []byte, err error)
- func StringRead(r []byte, dst *string) ([]byte, error)
- func StringReadBytes(r []byte, dst *[]byte) ([]byte, error)
- func StringReadTL2(r []byte, dst *string) (_ []byte, err error)
- func StringReadTL2Bytes(r []byte, dst *[]byte) (_ []byte, err error)
- func StringWrite(w []byte, v string) []byte
- func StringWriteBytes(w []byte, v []byte) []byte
- func StringWriteTL2(w []byte, v string) []byte
- func StringWriteTL2Bytes(w []byte, v []byte) []byte
- func TL2CalculateSize(l int) int
- func TL2ElementCountError(elementCount int, r []byte) error
- func TL2Error(format string, a ...any) error
- func TL2ExpectedNonZeroError() error
- func TL2ExpectedZeroError() error
- func TL2ParseSize(r []byte) ([]byte, int, error)
- func TL2PutSize(w []byte, l int) int
- func TL2ReadSize(r []byte, l *int) (_ []byte, err error)
- func TL2UnexpectedByteError(actualByte, expectedByte byte) error
- func TL2WriteSize(w []byte, l int) []byte
- func Uint64Read(r []byte, dst *uint64) ([]byte, error)
- func Uint64Write(w []byte, v uint64) []byte
- func VectorBitContentReadTL2(w []byte, vec []bool) (_ []byte, err error)
- func VectorBitContentWriteTL2(w []byte, vec []bool) []byte
- type JSONReadContext
- type JSONWriteContext
- type JsonLexer
- type Rand
- type RandGenerator
- type RandgeneratorContext
- type TL2ReadContext
- type TL2WriteContext
Constants ¶
View Source
const RandomNatConstraint = 32
Variables ¶
This section is empty.
Functions ¶
func BasicTL2Content ¶
func BasicTLContent ¶
func ByteBoolWriteTL2 ¶
func ByteReadTL2 ¶ added in v1.4.2
TODO - remove after all generated code updated
func ByteWriteTL2 ¶ added in v1.4.2
TODO - remove after all generated code updated
func CheckLengthSanity ¶
func DoubleWrite ¶
func FloatWrite ¶
func JSONAddCommaIfNeeded ¶
func JSONWriteBool ¶
func JSONWriteByte ¶
func JSONWriteFloat32 ¶
func JSONWriteFloat64 ¶
func JSONWriteInt32 ¶
func JSONWriteInt64 ¶
func JSONWriteString ¶
func JSONWriteStringBytes ¶
NOTE: keep in sync with string above.
func JSONWriteUint32 ¶
func JSONWriteUint64 ¶
func MaybeBoolWriteTL2 ¶
func NatPeekTag ¶
func RandomByte ¶
func RandomByte(rg *RandGenerator) byte
func RandomDouble ¶
func RandomDouble(rg *RandGenerator) float64
func RandomFieldMask ¶
func RandomFieldMask(rg *RandGenerator, bitMask uint32) uint32
func RandomFloat ¶
func RandomFloat(rg *RandGenerator) float32
func RandomInt ¶
func RandomInt(rg *RandGenerator) int32
func RandomLong ¶
func RandomLong(rg *RandGenerator) int64
func RandomSize ¶
func RandomSize(rg *RandGenerator) uint32
func RandomString ¶
func RandomString(rg *RandGenerator) string
func RandomStringBytes ¶
func RandomStringBytes(rg *RandGenerator) []byte
func RandomUint ¶
func RandomUint(rg *RandGenerator) uint32
func RandomUint64 ¶
func RandomUint64(rg *RandGenerator) uint64
func SkipSizedValue ¶
func StringWrite ¶
func StringWriteBytes ¶
func StringWriteTL2 ¶
func StringWriteTL2Bytes ¶
func TL2CalculateSize ¶
func TL2ElementCountError ¶
func TL2ExpectedNonZeroError ¶
func TL2ExpectedNonZeroError() error
func TL2ExpectedZeroError ¶
func TL2ExpectedZeroError() error
func TL2UnexpectedByteError ¶
func TL2WriteSize ¶
func Uint64Write ¶
func VectorBitContentReadTL2 ¶
Types ¶
type JSONReadContext ¶
type JSONWriteContext ¶
type RandGenerator ¶
type RandGenerator struct {
SizeHandler func(generatedValue uint32) uint32
FieldMaskHandler func(generatedValue uint32, bitMask uint32) uint32
// contains filtered or unexported fields
}
func NewRandGenerator ¶
func NewRandGenerator(r Rand) *RandGenerator
func NewRandGeneratorWithContext ¶
func NewRandGeneratorWithContext(r Rand, ctx RandgeneratorContext) *RandGenerator
func (*RandGenerator) DecreaseDepth ¶
func (rg *RandGenerator) DecreaseDepth()
func (*RandGenerator) IncreaseDepth ¶
func (rg *RandGenerator) IncreaseDepth()
func (*RandGenerator) LimitValue ¶
func (rg *RandGenerator) LimitValue(value uint32) uint32
type RandgeneratorContext ¶
type TL2ReadContext ¶
type TL2ReadContext struct{}
type TL2WriteContext ¶
type TL2WriteContext struct {
// buffer for allocations of objects sizes
SizeBuffer []int
}
Click to show internal directories.
Click to hide internal directories.