serde

package module
v0.0.0-...-53d94c4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: ISC Imports: 7 Imported by: 0

README

golang-quickjs-serde

Go module that speaks the QuickJS object serialization format.

The corresponding QuickJS C APIs are JS_ReadObject() and JS_WriteObject().

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Undefined = UndefinedValue{}

Functions

func ReadObject

func ReadObject(r io.Reader, v any) (err error)

func ReadValue

func ReadValue(r io.Reader) (v any, err error)

func WriteValue

func WriteValue(w io.Writer, v any) (err error)

The wire format is somewhat inefficient in that object keys ("atoms") go at the front, so you have to buffer the output until you're sure you've seen all objects.

Types

type ArrayBuffer

type ArrayBuffer struct{ Bytes []byte }

type Uint8ClampedArray

type Uint8ClampedArray struct{ Bytes []byte }

type UndefinedValue

type UndefinedValue struct{}

Jump to

Keyboard shortcuts

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