json

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireIterator

func AcquireIterator(r io.Reader) *jsoniter.Iterator

func AcquireStream

func AcquireStream(w io.Writer) *jsoniter.Stream

func DecoderOf

func DecoderOf(typ reflect.Type) jsoniter.ValDecoder

func EncoderOf

func EncoderOf(typ reflect.Type) jsoniter.ValEncoder

func ReleaseIterator

func ReleaseIterator(iter *jsoniter.Iterator)

func ReleaseStream

func ReleaseStream(s *jsoniter.Stream)

Types

type JSONPool

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

func NewJSONPool

func NewJSONPool(api jsoniter.API, bufSize ...int) *JSONPool

func (*JSONPool) AcquireIterator

func (p *JSONPool) AcquireIterator(r io.Reader) *jsoniter.Iterator

func (*JSONPool) AcquireStream

func (p *JSONPool) AcquireStream(w io.Writer) *jsoniter.Stream

func (*JSONPool) DecoderOf

func (p *JSONPool) DecoderOf(typ reflect.Type) jsoniter.ValDecoder

func (*JSONPool) EncoderOf

func (p *JSONPool) EncoderOf(typ reflect.Type) jsoniter.ValEncoder

func (*JSONPool) ReleaseIterator

func (p *JSONPool) ReleaseIterator(iter *jsoniter.Iterator)

func (*JSONPool) ReleaseStream

func (p *JSONPool) ReleaseStream(s *jsoniter.Stream)

Jump to

Keyboard shortcuts

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