zngbytes

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deserializer

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

func NewDeserializer

func NewDeserializer(reader io.Reader, templates []interface{}) *Deserializer

func NewDeserializerWithContext

func NewDeserializerWithContext(zctx *zed.Context, reader io.Reader, templates []interface{}) *Deserializer

func (*Deserializer) Close added in v1.0.0

func (d *Deserializer) Close() error

func (*Deserializer) Read

func (d *Deserializer) Read() (interface{}, error)

type Serializer

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

func NewSerializer

func NewSerializer() *Serializer

func (*Serializer) Bytes

func (s *Serializer) Bytes() []byte

Bytes returns a slice holding the serialized values. Close must be called before Bytes.

func (*Serializer) Close

func (s *Serializer) Close() error

func (*Serializer) Decorate

func (s *Serializer) Decorate(style zson.TypeStyle)

func (*Serializer) Write

func (s *Serializer) Write(v interface{}) error

Jump to

Keyboard shortcuts

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