Documentation
¶
Overview ¶
Code generated by vktl/cmd/tlgen2; DO NOT EDIT.
Index ¶
- Constants
- 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 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 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 RandomDouble(rg *RandGenerator) float64
- func RandomFloat(rg *RandGenerator) float32
- func RandomInt(rg *RandGenerator) int32
- func RandomLong(rg *RandGenerator) int64
- func RandomString(rg *RandGenerator) string
- func RandomStringBytes(rg *RandGenerator) []byte
- func RandomUint(rg *RandGenerator) uint32
- func ReadBool(r []byte, v *bool, falseTag uint32, trueTag uint32) ([]byte, error)
- func StringRead(r []byte, dst *string) ([]byte, error)
- func StringReadBytes(r []byte, dst *[]byte) ([]byte, error)
- func StringWrite(w []byte, v string) []byte
- func StringWriteBytes(w []byte, v []byte) []byte
- type JsonLexer
- type Rand
- type RandGenerator
Constants ¶
View Source
const RandomNatConstraint = 32
Variables ¶
This section is empty.
Functions ¶
func CheckLengthSanity ¶
func DoubleWrite ¶
func FloatWrite ¶
func JSONAddCommaIfNeeded ¶
func JSONWriteBool ¶
func JSONWriteFloat32 ¶
func JSONWriteFloat64 ¶
func JSONWriteInt32 ¶
func JSONWriteInt64 ¶
func JSONWriteString ¶
func JSONWriteStringBytes ¶
NOTE: keep in sync with string above.
func JSONWriteUint32 ¶
func JSONWriteUint64 ¶
func NatPeekTag ¶
func RandomDouble ¶
func RandomDouble(rg *RandGenerator) float64
func RandomFloat ¶
func RandomFloat(rg *RandGenerator) float32
func RandomInt ¶
func RandomInt(rg *RandGenerator) int32
func RandomLong ¶
func RandomLong(rg *RandGenerator) int64
func RandomString ¶
func RandomString(rg *RandGenerator) string
func RandomStringBytes ¶
func RandomStringBytes(rg *RandGenerator) []byte
func RandomUint ¶ added in v1.1.0
func RandomUint(rg *RandGenerator) uint32
func StringWrite ¶
func StringWriteBytes ¶
Types ¶
type RandGenerator ¶ added in v1.1.0
type RandGenerator struct {
// contains filtered or unexported fields
}
func NewRandGenerator ¶ added in v1.1.0
func NewRandGenerator(r Rand) *RandGenerator
func (*RandGenerator) DecreaseDepth ¶ added in v1.1.0
func (rg *RandGenerator) DecreaseDepth()
func (*RandGenerator) IncreaseDepth ¶ added in v1.1.0
func (rg *RandGenerator) IncreaseDepth()
func (*RandGenerator) LimitValue ¶ added in v1.1.0
func (rg *RandGenerator) LimitValue(value uint32) uint32
Click to show internal directories.
Click to hide internal directories.