tlrw

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONAddCommaIfNeeded

func JSONAddCommaIfNeeded(w *bytes.Buffer)

func JSONWriteBool

func JSONWriteBool(w *bytes.Buffer, v bool)

func JSONWriteFloat32

func JSONWriteFloat32(w *bytes.Buffer, v float32)

func JSONWriteFloat64

func JSONWriteFloat64(w *bytes.Buffer, v float64)

func JSONWriteInt32

func JSONWriteInt32(w *bytes.Buffer, v int32)

func JSONWriteInt64

func JSONWriteInt64(w *bytes.Buffer, v int64)

func JSONWriteString

func JSONWriteString(e *bytes.Buffer, s string)

func JSONWriteStringBytes

func JSONWriteStringBytes(e *bytes.Buffer, s []byte)

NOTE: keep in sync with string above.

func JSONWriteUint32

func JSONWriteUint32(w *bytes.Buffer, v uint32)

func JSONWriteUint64

func JSONWriteUint64(w *bytes.Buffer, v uint64)

func PeekTag

func PeekTag(r *bytes.Buffer) (uint32, error)

func PutUint32

func PutUint32(b []byte, v uint32)

func ReadExactTag

func ReadExactTag(r *bytes.Buffer, tag uint32) error

func ReadFloat32

func ReadFloat32(r *bytes.Buffer, dst *float32) error

func ReadFloat64

func ReadFloat64(r *bytes.Buffer, dst *float64) error

func ReadInt32

func ReadInt32(r *bytes.Buffer, dst *int32) error

func ReadInt64

func ReadInt64(r *bytes.Buffer, dst *int64) error

func ReadLength32

func ReadLength32(r *bytes.Buffer, n *int, minObjectSize int) error

ReadLength32 prevents allocation of buffers if len objects of minObjectSize cannot fit into remaining buffer length

func ReadString

func ReadString(r *bytes.Buffer, dst *string) error

func ReadStringBytes

func ReadStringBytes(r *bytes.Buffer, dst *[]byte) error

func ReadUint32

func ReadUint32(r *bytes.Buffer, dst *uint32) error

func ReadUint64

func ReadUint64(r *bytes.Buffer, dst *uint64) error

func StringSize

func StringSize(length int) int

func WriteFloat32

func WriteFloat32(w *bytes.Buffer, v float32)

func WriteFloat64

func WriteFloat64(w *bytes.Buffer, v float64)

func WriteInt32

func WriteInt32(w *bytes.Buffer, v int32)

func WriteInt64

func WriteInt64(w *bytes.Buffer, v int64)

func WriteString

func WriteString(w *bytes.Buffer, v string) error

func WriteStringBytes

func WriteStringBytes(w *bytes.Buffer, v []byte) error

func WriteUint32

func WriteUint32(w *bytes.Buffer, v uint32)

func WriteUint64

func WriteUint64(w *bytes.Buffer, v uint64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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