binary

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MPL-2.0 Imports: 10 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package binary implements the binary (msgpack) codec of soft.go/ecore. Importing it registers the codec for the "bin" extension in the default codec registry.

Index

Constants

View Source
const (
	OPTION_ID_ATTRIBUTE        = "ID_ATTRIBUTE"       // if true, save id attribute of the object
	OPTION_NAMESPACE_ATTRIBUTE = "NAMESPACE_ATTIBUTE" // if true, namespaces informations are encoded
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct {
}

func (*Codec) NewDecoder

func (bc *Codec) NewDecoder(resource ecore.EResource, r io.Reader, options map[string]any) ecore.EDecoder

func (*Codec) NewEncoder

func (bc *Codec) NewEncoder(resource ecore.EResource, w io.Writer, options map[string]any) ecore.EEncoder

type Decoder

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

func NewDecoder

func NewDecoder(resource ecore.EResource, r io.Reader, options map[string]any) *Decoder

func (*Decoder) DecodeObject

func (d *Decoder) DecodeObject() (ecore.EObject, error)

func (*Decoder) DecodeResource

func (d *Decoder) DecodeResource()

type Encoder

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

func NewEncoder

func NewEncoder(resource ecore.EResource, w io.Writer, options map[string]any) *Encoder

func NewEncoderWithVersion

func NewEncoderWithVersion(resource ecore.EResource, w io.Writer, options map[string]any, version int) *Encoder

func (*Encoder) EncodeObject

func (e *Encoder) EncodeObject(object ecore.EObject) error

func (*Encoder) EncodeResource

func (e *Encoder) EncodeResource()

Jump to

Keyboard shortcuts

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