j57

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Examples

Constants

View Source
const (
	Base = 57
)

Variables

View Source
var (
	ErrNoHeader          = newJASCError("no size header in JASC value", 0)
	ErrInvalidJASCFormat = newJASCError("invalid format for a JASC value", 0)
)
View Source
var (
	TxtErrInvalidJASCByte = "unrecognized JASC byte value"
)

Functions

func AppendBool

func AppendBool(v bool, buf []byte, off *tally.UTally) int

func AppendBytes added in v1.1.0

func AppendBytes(v []byte, buf []byte, off *tally.UTally) (wrote int)

func AppendComplex128

func AppendComplex128(value complex128, buffer []byte, offset *tally.UTally) (wrote int)

func AppendComplex64

func AppendComplex64(value complex64, buffer []byte, offset *tally.UTally) int

func AppendFloat32

func AppendFloat32(v float32, buf []byte, off *tally.UTally) int

AppendFloat32 converts the given float32 value to base57 and writes it to the given buffer starting at off.Cur().

The given offset value will be incremented as the buffer is written and after this function call will be at the next writable offset position.

WARNING: This method makes no attempt to verify that the given byte buffer is actually long enough to hold the serialized value. The buffer size should be at least SizeFloat32(v) in length.

func AppendFloat64

func AppendFloat64(v float64, buf []byte, off *tally.UTally) int

AppendFloat64 converts the given float64 value to base57 and writes it to the given buffer starting at off.Cur().

The given offset value will be incremented as the buffer is written and after this function call will be at the next writable offset position.

WARNING: This method makes no attempt to verify that the given byte buffer is actually long enough to hold the serialized value. The buffer size should be at least SizeFloat64(v) in length.

func AppendInt

func AppendInt(v int, buf []byte, off *tally.UTally) (wrote int)

AppendUint converts the given uint value to base57 and writes it to the given buffer starting at off.Cur().

The given offset value will be incremented as the buffer is written and after this function call will be at the next writable offset position.

WARNING: This method makes no attempt to verify that the given byte buffer is actually long enough to hold the serialized value. The buffer size should be at least SizeUint(v) in length.

func AppendInt16

func AppendInt16(v int16, buf []byte, off *tally.UTally) int

AppendInt16 converts the given int16 value to base57 and writes it to the given buffer starting at off.Cur().

The given offset value will be incremented as the buffer is written and after this function call will be at the next writable offset position.

WARNING: This method makes no attempt to verify that the given byte buffer is actually long enough to hold the serialized value. The buffer size should be at least SizeInt16(v) in length.

func AppendInt32

func AppendInt32(v int32, buf []byte, off *tally.UTally) int

AppendInt32 converts the given int32 value to base57 and writes it to the given buffer starting at off.Cur().

The given offset value will be incremented as the buffer is written and after this function call will be at the next writable offset position.

WARNING: This method makes no attempt to verify that the given byte buffer is actually long enough to hold the serialized value. The buffer size should be at least SizeInt32(v) in length.

func AppendInt64

func AppendInt64(v int64, buf []byte, off *tally.UTally) int

AppendInt64 converts the given int64 value to base57 and writes it to the given buffer starting at off.Cur().

The given offset value will be incremented as the buffer is written and after this function call will be at the next writable offset position.

WARNING: This method makes no attempt to verify that the given byte buffer is actually long enough to hold the serialized value. The buffer size should be at least SizeInt64(v) in length.

func AppendInt8

func AppendInt8(v int8, buf []byte, off *tally.UTally) int

AppendInt8 converts the given int8 value to base57 and writes it to the given buffer starting at off.Cur().

The given offset value will be incremented as the buffer is written and after this function call will be at the next writable offset position.

WARNING: This method makes no attempt to verify that the given byte buffer is actually long enough to hold the serialized value. The buffer size should be at least SizeInt8(v) in length.

func AppendString

func AppendString(v string, buf []byte, off *tally.UTally) (wrote int)

func AppendUint

func AppendUint(v uint, buf []byte, off *tally.UTally) (wrote int)

AppendUint converts the given uint value to base57 and writes it to the given buffer starting at off.Cur().

The given offset value will be incremented as the buffer is written and after this function call will be at the next writable offset position.

WARNING: This method makes no attempt to verify that the given byte buffer is actually long enough to hold the serialized value. The buffer size should be at least SizeUint(v) in length.

func AppendUint16

func AppendUint16(v uint16, buf []byte, off *tally.UTally) (wrote int)

AppendUint16 converts the given uint16 value to base57 and writes it to the given buffer starting at off.Cur().

The given offset value will be incremented as the buffer is written and after this function call will be at the next writable offset position.

WARNING: This method makes no attempt to verify that the given byte buffer is actually long enough to hold the serialized value. The buffer size should be at least SizeUint16(v) in length.

func AppendUint32

func AppendUint32(v uint32, buf []byte, off *tally.UTally) (wrote int)

AppendUint32 converts the given uint32 value to base57 and writes it to the given buffer starting at off.Cur().

The given offset value will be incremented as the buffer is written and after this function call will be at the next writable offset position.

WARNING: This method makes no attempt to verify that the given byte buffer is actually long enough to hold the serialized value. The buffer size should be at least SizeUint32(v) in length.

func AppendUint64

func AppendUint64(v uint64, buf []byte, off *tally.UTally) (wrote int)

AppendUint64 converts the given uint64 value to base57 and writes it to the given buffer starting at off.Cur().

The given offset value will be incremented as the buffer is written and after this function call will be at the next writable offset position.

WARNING: This method makes no attempt to verify that the given byte buffer is actually long enough to hold the serialized value. The buffer size should be at least SizeUint64(v) in length.

func AppendUint8

func AppendUint8(v uint8, buf []byte, off *tally.UTally) (wrote int)

AppendUint8 converts the given uint8 value to base57 and writes it to the given buffer starting at off.Cur().

The given offset value will be incremented as the buffer is written and after this function call will be at the next writable offset position.

WARNING: This method makes no attempt to verify that the given byte buffer is actually long enough to hold the serialized value. The buffer size should be at least SizeUint8(v) in length.

func DeserializeBool

func DeserializeBool(buf []byte, off *tally.UTally) (bool, error)

func DeserializeBytes added in v1.1.0

func DeserializeBytes(buf []byte, off *tally.UTally) ([]byte, error)

func DeserializeComplex128

func DeserializeComplex128(buffer []byte, offset *tally.UTally) (complex128, error)

func DeserializeComplex64

func DeserializeComplex64(buffer []byte, offset *tally.UTally) (complex64, error)

func DeserializeFloat32

func DeserializeFloat32(v []byte, off *tally.UTally) (out float32, err error)

func DeserializeFloat64

func DeserializeFloat64(v []byte, off *tally.UTally) (out float64, err error)

func DeserializeInt

func DeserializeInt(v []byte, off *tally.UTally) (int, error)

func DeserializeInt16

func DeserializeInt16(v []byte, off *tally.UTally) (out int16, err error)

func DeserializeInt32

func DeserializeInt32(v []byte, off *tally.UTally) (out int32, err error)

func DeserializeInt64

func DeserializeInt64(v []byte, off *tally.UTally) (out int64, err error)

func DeserializeInt8

func DeserializeInt8(v []byte, off *tally.UTally) (int8, error)

func DeserializeString

func DeserializeString(buf []byte, off *tally.UTally) (string, error)

func DeserializeUDigit

func DeserializeUDigit(b byte) uint8

func DeserializeUint

func DeserializeUint(v []byte, off *tally.UTally) (uint, error)

func DeserializeUint16

func DeserializeUint16(v []byte, off *tally.UTally) (out uint16, err error)
Example
input := []byte("$$%'>&7,M")
offset := tally.UTally(0)

for int(offset.Cur()) < len(input) {
	fmt.Println(j57.DeserializeUint32(input, &offset))
}
Output:

1 <nil>
255 <nil>
65535 <nil>

func DeserializeUint32

func DeserializeUint32(v []byte, off *tally.UTally) (out uint32, err error)
Example
input := []byte("'$##$)**TS+;($##$M")
offset := tally.UTally(0)

for int(offset.Cur()) < len(input) {
	fmt.Println(j57.DeserializeUint32(input, &offset))
}
Output:

185194 <nil>
4294967295 <nil>
10556100 <nil>

func DeserializeUint64

func DeserializeUint64(v []byte, off *tally.UTally) (out uint64, err error)
Example
input := []byte(".$C:;)<MX02%-$XP1F%)'6W,$)+JIO@IY")
offset := tally.UTally(0)

for int(offset.Cur()) < len(input) {
	fmt.Println(j57.DeserializeUint64(input, &offset))
}
Output:

567890123456789012 <nil>
12345678901234567 <nil>
123456789012345 <nil>

func DeserializeUint8

func DeserializeUint8(v []byte, off *tally.UTally) (uint8, error)
Example
input := []byte("#$$$%$&$'$($)$*$+")
offset := tally.UTally(0)

for int(offset.Cur()) < len(input) {
	fmt.Println(j57.DeserializeUint8(input, &offset))
}
Output:

0 <nil>
1 <nil>
2 <nil>
3 <nil>
4 <nil>
5 <nil>
6 <nil>
7 <nil>
8 <nil>

func IsJASCError

func IsJASCError(e error) bool

func NewJASCByteError

func NewJASCByteError(pos int) error

func NewJASCFormatError

func NewJASCFormatError(pos int, kind ValueKind) error

func SerializeBool

func SerializeBool(v bool) []byte

func SerializeBytes added in v1.1.0

func SerializeBytes(v []byte) []byte

func SerializeComplex128

func SerializeComplex128(value complex128) []byte

func SerializeComplex64

func SerializeComplex64(v complex64) []byte

func SerializeFloat32

func SerializeFloat32(v float32) []byte

SerializeFloat32 converts the given float32 value to a base57 encoded byte slice.

The byte slice returned may be 1-7 bytes in length.

func SerializeFloat64

func SerializeFloat64(v float64) []byte

SerializeFloat64 converts the given float64 value to a base57 encoded byte slice.

The byte slice returned may be 1-7 bytes in length.

func SerializeInt

func SerializeInt(v int) []byte

SerializeUint converts the given uint value to a base57 encoded byte slice.

The byte slice returned may be 1-3 bytes in length.

func SerializeInt16

func SerializeInt16(v int16) []byte

SerializeInt16 converts the given int16 value to a base57 encoded byte slice.

The byte slice returned may be 1-4 bytes in length.

func SerializeInt32

func SerializeInt32(v int32) []byte

SerializeInt32 converts the given int32 value to a base57 encoded byte slice.

The byte slice returned may be 1-7 bytes in length.

func SerializeInt64

func SerializeInt64(v int64) []byte

SerializeInt64 converts the given int64 value to a base57 encoded byte slice.

The byte slice returned may be 1-12 bytes in length.

func SerializeInt8

func SerializeInt8(v int8) []byte

SerializeInt8 converts the given int8 value to a base57 encoded byte slice.

The byte slice returned may be 1-3 bytes in length.

func SerializeString

func SerializeString(v string) []byte

func SerializeUint

func SerializeUint(v uint) []byte

SerializeUint converts the given uint value to a base57 encoded byte slice.

The byte slice returned may be 1-3 bytes in length.

func SerializeUint16

func SerializeUint16(v uint16) []byte

SerializeUint16 converts the given uint16 value to a base57 encoded byte slice.

The byte slice returned may be 1-4 bytes in length.

func SerializeUint32

func SerializeUint32(v uint32) []byte

SerializeUint32 converts the given uint32 value to a base57 encoded byte slice.

The byte slice returned may be 1-7 bytes in length.

func SerializeUint64

func SerializeUint64(v uint64) []byte

SerializeUint64 converts the given uint64 value to a base57 encoded byte slice.

The byte slice returned may be 1-12 bytes in length.

func SerializeUint8

func SerializeUint8(v uint8) []byte

SerializeUint8 converts the given uint8 value to a base57 encoded byte slice.

The byte slice returned may be 1-3 bytes in length.

func SizeBool

func SizeBool(v bool) uint

func SizeBytes added in v1.1.0

func SizeBytes(v []byte) uint

func SizeComplex128

func SizeComplex128(v complex128) uint

func SizeComplex64

func SizeComplex64(v complex64) uint

func SizeFloat32

func SizeFloat32(v float32) uint

SizeFloat32 returns the number of bytes needed in a byte buffer to hold the serialized form of the given float32 value.

This size includes the byte needed for the number size header.

func SizeFloat64

func SizeFloat64(v float64) uint

SizeFloat64 returns the number of bytes needed in a byte buffer to hold the serialized form of the given float64 value.

This size includes the byte needed for the number size header.

func SizeInt

func SizeInt(v int) uint

SizeUint returns the number of bytes needed in a byte buffer to hold the serialized form of the given uint value.

This size includes the byte needed for the number size header.

func SizeInt16

func SizeInt16(v int16) uint

SizeInt16 returns the number of bytes needed in a byte buffer to hold the serialized form of the given uint8 value.

This size includes the byte needed for the number size header.

func SizeInt32

func SizeInt32(v int32) uint

SizeInt32 returns the number of bytes needed in a byte buffer to hold the serialized form of the given int32 value.

This size includes the byte needed for the number size header.

func SizeInt64

func SizeInt64(v int64) uint

SizeInt64 returns the number of bytes needed in a byte buffer to hold the serialized form of the given int64 value.

This size includes the byte needed for the number size header.

func SizeInt8

func SizeInt8(v int8) uint

SizeInt8 returns the number of bytes needed in a byte buffer to hold the serialized form of the given int8 value.

This size includes the byte needed for the number size header.

func SizeString

func SizeString(v string) uint

func SizeUint

func SizeUint(v uint) uint

SizeUint returns the number of bytes needed in a byte buffer to hold the serialized form of the given uint value.

This size includes the byte needed for the number size header.

func SizeUint16

func SizeUint16(v uint16) uint

SizeUint16 returns the number of bytes needed in a byte buffer to hold the serialized form of the given uint8 value.

This size includes the byte needed for the number size header.

func SizeUint32

func SizeUint32(v uint32) uint

SizeUint32 returns the number of bytes needed in a byte buffer to hold the serialized form of the given uint32 value.

This size includes the byte needed for the number size header.

func SizeUint64

func SizeUint64(v uint64) uint

SizeUint64 returns the number of bytes needed in a byte buffer to hold the serialized form of the given uint64 value.

This size includes the byte needed for the number size header.

func SizeUint8

func SizeUint8(v uint8) uint

SizeUint8 returns the number of bytes needed in a byte buffer to hold the serialized form of the given uint8 value.

This size includes the byte needed for the number size header.

Types

type BoolBufAppenderFn

type BoolBufAppenderFn = func(bool, []byte, *tally.UTally) int

BoolBufAppenderFn is a function type declaration matching the included SerializeBoolInto function.

type BoolDeserializerFn

type BoolDeserializerFn = func([]byte, *tally.UTally) (bool, error)

BoolDeserializerFn is a function type declaration matching the included DeserializeBool function.

type BoolSerializerFn

type BoolSerializerFn = func(bool) []byte

BoolSerializerFn is a function type declaration matching the included SerializeBool function.

type BoolSizeFn

type BoolSizeFn = func(bool) uint

BoolSizeFn is a function type declaration matching the included BoolSize function.

type BytesBufAppenderFn added in v1.1.0

type BytesBufAppenderFn = func([]byte, []byte, *tally.UTally) int

BytesBufAppenderFn is a function type declaration matching the included AppendBytes function.

type BytesDeserializerFn added in v1.1.0

type BytesDeserializerFn = func([]byte, *tally.UTally) ([]byte, error)

BytesDeserializerFn is a function type declaration matching the included DeserializeBytes function.

type BytesSerializerFn added in v1.1.0

type BytesSerializerFn = func([]byte) []byte

BytesSerializerFn is a function type declaration matching the included SerializeBytes function.

type C128BufAppenderFn

type C128BufAppenderFn = func(complex128, []byte, *tally.UTally) int

C128BufAppenderFn is a function type declaration matching the included AppendComplex128 function.

type C128DeserializerFn

type C128DeserializerFn = func([]byte, *tally.UTally) (complex128, error)

C128DeserializerFn is a function type declaration matching the included DeserializeComplex128 function.

type C128SerializerFn

type C128SerializerFn = func(complex128) []byte

C128SerializerFn is a function type declaration matching the included SerializeComplex128 function.

type C128SizeFn

type C128SizeFn = func(complex128) uint

C128SizeFn is a function type declaration matching the included Complex128Size function.

type C64BufAppenderFn

type C64BufAppenderFn = func(complex64, []byte, *tally.UTally) int

C64BufAppenderFn is a function type declaration matching the included AppendComplex64 function.

type C64DeserializerFn

type C64DeserializerFn = func([]byte, *tally.UTally) (complex64, error)

C64DeserializerFn is a function type declaration matching the included DeserializeComplex64 function.

type C64SerializerFn

type C64SerializerFn = func(complex64) []byte

C64SerializerFn is a function type declaration matching the included SerializeComplex64 function.

type C64SizeFn

type C64SizeFn = func(complex64) uint

C64SizeFn is a function type declaration matching the included Complex64Size function.

type Deserializable

type Deserializable interface {
	DeserializeJASC(buf []byte, off *tally.UTally) error
}

type F32BufAppenderFn

type F32BufAppenderFn = func(float32, []byte, *tally.UTally) int

F32BufAppenderFn is a function type declaration matching the included AppendFloat32 function.

type F32DeserializerFn

type F32DeserializerFn = func([]byte, *tally.UTally) (float32, error)

F32DeserializerFn is a function type declaration matching the included DeserializeFloat32 function.

type F32SerializerFn

type F32SerializerFn = func(float32) []byte

F32SerializerFn is a function type declaration matching the included SerializeFloat32 function.

type F32SizeFn

type F32SizeFn = func(float32) uint

F32SizeFn is a function type declaration matching the included Float32Size function.

type F64BufAppenderFn

type F64BufAppenderFn = func(float64, []byte, *tally.UTally) int

F64BufAppenderFn is a function type declaration matching the included AppendFloat64 function.

type F64DeserializerFn

type F64DeserializerFn = func([]byte, *tally.UTally) (float64, error)

F64DeserializerFn is a function type declaration matching the included DeserializeFloat64 function.

type F64SerializerFn

type F64SerializerFn = func(float64) []byte

F64SerializerFn is a function type declaration matching the included SerializeFloat64 function.

type F64SizeFn

type F64SizeFn = func(float64) uint

F64SizeFn is a function type declaration matching the included Float64Size function.

type I16BufAppenderFn

type I16BufAppenderFn = func(int16, []byte, *tally.UTally) int

I16BufAppenderFn is a function type declaration matching the included AppendInt16 function.

type I16DeserializerFn

type I16DeserializerFn = func([]byte, *tally.UTally) (int16, error)

I16DeserializerFn is a function type declaration matching the included DeserializeInt16 function.

type I16SerializerFn

type I16SerializerFn = func(int16) []byte

I16SerializerFn is a function type declaration matching the included SerializeInt16 function.

type I16SizeFn

type I16SizeFn = func(int16) uint

I16SizeFn is a function type declaration matching the included Int16Size function.

type I32BufAppenderFn

type I32BufAppenderFn = func(int32, []byte, *tally.UTally) int

I32BufAppenderFn is a function type declaration matching the included AppendInt32 function.

type I32DeserializerFn

type I32DeserializerFn = func([]byte, *tally.UTally) (int32, error)

I32DeserializerFn is a function type declaration matching the included DeserializeInt32 function.

type I32SerializerFn

type I32SerializerFn = func(int32) []byte

I32SerializerFn is a function type declaration matching the included SerializeInt32 function.

type I32SizeFn

type I32SizeFn = func(int32) uint

I32SizeFn is a function type declaration matching the included Int32Size function.

type I64BufAppenderFn

type I64BufAppenderFn = func(int64, []byte, *tally.UTally) int

I64BufAppenderFn is a function type declaration matching the included AppendInt64 function.

type I64DeserializerFn

type I64DeserializerFn = func([]byte, *tally.UTally) (int64, error)

I64DeserializerFn is a function type declaration matching the included DeserializeInt64 function.

type I64SerializerFn

type I64SerializerFn = func(int64) []byte

I64SerializerFn is a function type declaration matching the included SerializeInt64 function.

type I64SizeFn

type I64SizeFn = func(int64) uint

I64SizeFn is a function type declaration matching the included Int64Size function.

type I8BufAppenderFn

type I8BufAppenderFn = func(int8, []byte, *tally.UTally) int

I8BufAppenderFn is a function type declaration matching the included AppendInt8 function.

type I8DeserializerFn

type I8DeserializerFn = func([]byte, *tally.UTally) (int8, error)

I8DeserializerFn is a function type declaration matching the included DeserializeInt8 function.

type I8SerializerFn

type I8SerializerFn = func(int8) []byte

I8SerializerFn is a function type declaration matching the included SerializeInt8 function.

type I8SizeFn

type I8SizeFn = func(int8) uint

I8SizeFn is a function type declaration matching the included Int8Size function.

type IBufAppenderFn

type IBufAppenderFn = func(int, []byte, *tally.UTally) int

IBufAppenderFn is a function type declaration matching the included AppendInt function.

type IDeserializerFn

type IDeserializerFn = func([]byte, *tally.UTally) (int, error)

IDeserializerFn is a function type declaration matching the included DeserializeInt function.

type ISerializerFn

type ISerializerFn = func(int) []byte

ISerializerFn is a function type declaration matching the included SerializeInt function.

type ISizeFn

type ISizeFn = func(int) uint

ISizeFn is a function type declaration matching the included IntSize function.

type JASCError

type JASCError interface {
	error

	Pos() int
	Kind() ValueKind
}

type Serializable

type Serializable interface {
	SerializeJASC() ([]byte, error)
	SerializeJASCInto(buf []byte, off *tally.UTally) error
	JASCSize() uint
}

type StringBufAppenderFn

type StringBufAppenderFn = func(string, []byte, *tally.UTally) int

StringBufAppenderFn is a function type declaration matching the included AppendString function.

type StringDeserializerFn

type StringDeserializerFn = func([]byte, *tally.UTally) (string, error)

StringDeserializerFn is a function type declaration matching the included DeserializeString function.

type StringSerializerFn

type StringSerializerFn = func(string) []byte

StringSerializerFn is a function type declaration matching the included SerializeString function.

type U16BufAppenderFn

type U16BufAppenderFn = func(uint16, []byte, *tally.UTally) int

U16BufAppenderFn is a function type declaration matching the included AppendUint16 function.

type U16DeserializerFn

type U16DeserializerFn = func([]byte, *tally.UTally) (uint16, error)

U16DeserializerFn is a function type declaration matching the included DeserializeUint16 function.

type U16SerializerFn

type U16SerializerFn = func(uint16) []byte

U16SerializerFn is a function type declaration matching the included SerializeUint16 function.

type U16SizeFn

type U16SizeFn = func(uint16) uint

U16SizeFn is a function type declaration matching the included Uint16Size function.

type U32BufAppenderFn

type U32BufAppenderFn = func(uint32, []byte, *tally.UTally) int

U32BufAppenderFn is a function type declaration matching the included AppendUint32 function.

type U32DeserializerFn

type U32DeserializerFn = func([]byte, *tally.UTally) (uint32, error)

U32DeserializerFn is a function type declaration matching the included DeserializeUint32 function.

type U32SerializerFn

type U32SerializerFn = func(uint32) []byte

U32SerializerFn is a function type declaration matching the included SerializeUint32 function.

type U32SizeFn

type U32SizeFn = func(uint32) uint

U32SizeFn is a function type declaration matching the included Uint32Size function.

type U64BufAppenderFn

type U64BufAppenderFn = func(uint64, []byte, *tally.UTally) int

U64BufAppenderFn is a function type declaration matching the included AppendUint64 function.

type U64DeserializerFn

type U64DeserializerFn = func([]byte, *tally.UTally) (uint64, error)

U64DeserializerFn is a function type declaration matching the included DeserializeUint64 function.

type U64SerializerFn

type U64SerializerFn = func(uint64) []byte

U64SerializerFn is a function type declaration matching the included SerializeUint64 function.

type U64SizeFn

type U64SizeFn = func(uint64) uint

U64SizeFn is a function type declaration matching the included Uint64Size function.

type U8BufAppenderFn

type U8BufAppenderFn = func(uint8, []byte, *tally.UTally) int

U8BufAppenderFn is a function type declaration matching the included AppendUint8 function.

type U8DeserializerFn

type U8DeserializerFn = func([]byte, *tally.UTally) (uint8, error)

U8DeserializerFn is a function type declaration matching the included DeserializeUint8 function.

type U8SerializerFn

type U8SerializerFn = func(uint8) []byte

U8SerializerFn is a function type declaration matching the included SerializeUint8 function.

type U8SizeFn

type U8SizeFn = func(uint8) uint

U8SizeFn is a function type declaration matching the included Uint8Size function.

type UBufAppenderFn

type UBufAppenderFn = func(uint, []byte, *tally.UTally) int

UBufAppenderFn is a function type declaration matching the included AppendUint function.

type UDeserializerFn

type UDeserializerFn = func([]byte, *tally.UTally) (uint, error)

UDeserializerFn is a function type declaration matching the included DeserializeUint function.

type USerializerFn

type USerializerFn = func(uint) []byte

USerializerFn is a function type declaration matching the included SerializeUint function.

type USizeFn

type USizeFn = func(uint) uint

USizeFn is a function type declaration matching the included UintSize function.

type ValueKind

type ValueKind uint8
const (
	KindNone ValueKind = iota
	KindBool
	KindString
	KindUint8
	KindUint16
	KindUint32
	KindUint64
)

func (ValueKind) String

func (v ValueKind) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL