ras

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 8 Imported by: 7

Documentation

Index

Constants

View Source
const (
	UTF8_CHARSET   = "UTF-8"
	SIZEOF_SHORT   = 2
	SIZEOF_INT     = 4
	SIZEOF_LONG    = 8
	NULL_BYTE      = 0x80
	TRUE_BYTE      = 1
	FALSE_BYTE     = 0
	MAX_SHIFT      = 7
	NULL_SHIFT     = 6
	BYTE_MASK      = 255
	NEXT_MASK      = -128
	NULL_NEXT_MASK = 64
	LAST_MASK      = 0
	NULL_LSB_MASK  = 63
	LSB_MASK       = 127
	TEMP_CAPACITY  = 256
)
View Source
const AgeDelta = 621355968000000

Variables

This section is empty.

Functions

func FormatBool

func FormatBool(w io.Writer, value interface{}) error

func FormatByte

func FormatByte(w io.Writer, value interface{}) error

func FormatBytes

func FormatBytes(r io.Writer, value interface{}) error

func FormatDouble

func FormatDouble(w io.Writer, value interface{}) error

func FormatFloat

func FormatFloat(w io.Writer, value interface{}) error

func FormatInt

func FormatInt(w io.Writer, value interface{}) error

func FormatLong

func FormatLong(w io.Writer, value interface{}) error

func FormatNullable

func FormatNullable(w io.Writer, value interface{}) error

func FormatShort

func FormatShort(w io.Writer, value interface{}) error

func FormatSize

func FormatSize(w io.Writer, value interface{}) error

func FormatString

func FormatString(w io.Writer, value interface{}) error

func FormatTime

func FormatTime(w io.Writer, value interface{}) error

func FormatType

func FormatType(w io.Writer, value interface{}) error

func FormatUuid

func FormatUuid(r io.Writer, value interface{}) error

func ParseBool

func ParseBool(r io.Reader, into interface{}) error

func ParseByte

func ParseByte(r io.Reader, into interface{}) error

func ParseBytes

func ParseBytes(r io.Reader, data []byte) error

func ParseDouble

func ParseDouble(r io.Reader, into interface{}) error

func ParseFloat

func ParseFloat(r io.Reader, into interface{}) error

func ParseInt

func ParseInt(r io.Reader, into interface{}) error

func ParseLong

func ParseLong(r io.Reader, into interface{}) error

func ParseNullable

func ParseNullable(r io.Reader, into interface{}) error

func ParseShort

func ParseShort(r io.Reader, into interface{}) error

func ParseSize

func ParseSize(r io.Reader, into interface{}) error

func ParseString

func ParseString(r io.Reader, into interface{}) error

func ParseTime

func ParseTime(r io.Reader, into interface{}) error

func ParseType

func ParseType(r io.Reader, into interface{}) error

func ParseUUID

func ParseUUID(r io.Reader, into interface{}) error

func Version

func Version() int32

Types

type EncoderWriteError

type EncoderWriteError struct {
	Mame string
	// contains filtered or unexported fields
}

func (*EncoderWriteError) Error

func (e *EncoderWriteError) Error() string

type ParseError

type ParseError struct {
	Mame string
	Msg  string
}

func (*ParseError) Error

func (e *ParseError) Error() string

type TypeEncoderError

type TypeEncoderError struct {
	Mame string
	Msg  string
}

func (*TypeEncoderError) Error

func (e *TypeEncoderError) Error() string

Jump to

Keyboard shortcuts

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