udwJsonLib

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ComfirmGolangJsonLibBugTag = "c77m5xn7zg"

Variables

This section is empty.

Functions

func MustReadJsonByteSlice

func MustReadJsonByteSlice(ctx *Context) (outB []byte)

func MustReadJsonNull

func MustReadJsonNull(ctx *Context)

func PoolPutContextWithWriteBuf

func PoolPutContextWithWriteBuf(ctx *Context)

func ReadJsonBool

func ReadJsonBool(ctx *Context) bool

func ReadJsonFloat32

func ReadJsonFloat32(ctx *Context) float32

func ReadJsonFloat64

func ReadJsonFloat64(ctx *Context) float64

func ReadJsonInt64

func ReadJsonInt64(ctx *Context) int64

func ReadJsonInt64FromString

func ReadJsonInt64FromString(ctx *Context) int64

func ReadJsonString

func ReadJsonString(ctx *Context) string

func ReadJsonTime

func ReadJsonTime(ctx *Context) time.Time

func ReadJsonTmpString

func ReadJsonTmpString(ctx *Context) (s string)

func ReadJsonUint64

func ReadJsonUint64(ctx *Context) uint64

func ReadJsonUint64FromString

func ReadJsonUint64FromString(ctx *Context) uint64

func ReaderGetRemainByteSlice

func ReaderGetRemainByteSlice(ctx *Context) []byte

func ReaderReadBack

func ReaderReadBack(ctx *Context, size int)

func ReaderReadByte

func ReaderReadByte(ctx *Context) byte

func ReaderReadMapValueByteList

func ReaderReadMapValueByteList(ctx *Context) []byte

func ReaderReadPosAdd

func ReaderReadPosAdd(ctx *Context, size int)

func ReaderReadSpace

func ReaderReadSpace(ctx *Context)

func ReaderSetData

func ReaderSetData(ctx *Context, data []byte)

func ReaderSkipMapValue

func ReaderSkipMapValue(ctx *Context)

func WriteIfEmptyStruct

func WriteIfEmptyStruct(ctx *Context) bool

func WriteJsonByteSlice

func WriteJsonByteSlice(ctx *Context, buf []byte)

func WriteJsonFloat32

func WriteJsonFloat32(ctx *Context, f float32)

func WriteJsonFloat64

func WriteJsonFloat64(ctx *Context, f float64)

func WriteJsonInt64

func WriteJsonInt64(ctx *Context, i int64)

func WriteJsonInt64AsString

func WriteJsonInt64AsString(ctx *Context, i int64)

func WriteJsonString

func WriteJsonString(ctx *Context, s string)

func WriteJsonTime

func WriteJsonTime(ctx *Context, t time.Time)

func WriteJsonUint64

func WriteJsonUint64(ctx *Context, i uint64)

func WriteJsonUint64AsString

func WriteJsonUint64AsString(ctx *Context, i uint64)

func WritePosAdd

func WritePosAdd(ctx *Context, offset int)

func WriterWriteByte

func WriterWriteByte(ctx *Context, b byte)

func WriterWriteByteList

func WriterWriteByteList(ctx *Context, s []byte)

func WriterWriteString

func WriterWriteString(ctx *Context, s string)

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func NewContext

func NewContext() *Context

func NewContextFromBuffer

func NewContextFromBuffer(b []byte) *Context

func NewContextFromWriteBuffer

func NewContextFromWriteBuffer(b []byte) *Context

func PoolGetContextForRead

func PoolGetContextForRead(readData []byte) *Context

func PoolGetContextWithWriteBuf

func PoolGetContextWithWriteBuf() *Context

func (*Context) CopyWriterDataToReaderData

func (ctx *Context) CopyWriterDataToReaderData()

func (*Context) ReaderReadSpaceAndIsEof

func (ctx *Context) ReaderReadSpaceAndIsEof() bool

func (*Context) ReaderReset

func (ctx *Context) ReaderReset()

func (*Context) SetReader

func (ctx *Context) SetReader(data []byte)

func (*Context) WriterBytes

func (ctx *Context) WriterBytes() []byte

func (*Context) WriterReset

func (ctx *Context) WriterReset()

Jump to

Keyboard shortcuts

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