udwShm

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

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(obj interface{}) (data []byte, errMsg string)

func Unmarshal

func Unmarshal(data []byte, obj interface{}) (errMsg string)

Types

type ReadUvarintResp

type ReadUvarintResp struct {
	IsArrayEnd bool
	B          []byte
	ErrMsg     string
}

type ShmReader

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

func NewShmReader

func NewShmReader(r io.Reader, maxStringSize int) *ShmReader

func (*ShmReader) ReadArrayEnd

func (r *ShmReader) ReadArrayEnd() (errMsg string)

func (*ShmReader) ReadArrayStart

func (r *ShmReader) ReadArrayStart() (errMsg string)

func (*ShmReader) ReadOneString

func (r *ShmReader) ReadOneString() (b []byte, errMsg string)

func (*ShmReader) ReadUvarint

func (r *ShmReader) ReadUvarint() (v uint64, errMsg string)

func (*ShmReader) ReadValue

func (r *ShmReader) ReadValue(a interface{}) (errMsg string)

type ShmWriter

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

func NewShmWriter

func NewShmWriter(w io.Writer, softMaxBufferSize int) *ShmWriter

func (*ShmWriter) Flush

func (w *ShmWriter) Flush() (errMsg string)

func (*ShmWriter) WriteArrayEnd

func (w *ShmWriter) WriteArrayEnd()

func (*ShmWriter) WriteArrayStart

func (w *ShmWriter) WriteArrayStart()

func (*ShmWriter) WriteByteSlice

func (w *ShmWriter) WriteByteSlice(buf []byte)

func (*ShmWriter) WriteString

func (w *ShmWriter) WriteString(s string)

func (*ShmWriter) WriteUvarint

func (w *ShmWriter) WriteUvarint(v uint64)

func (*ShmWriter) WriteValue

func (w *ShmWriter) WriteValue(a interface{}) (errMsg string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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