binary

package
v0.90.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package binary provides binary serialization routines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deserialize

func Deserialize(b []byte) interface{}

Deserialize unpacks previously serialized value from a byte slice, it's the opposite of Serialize. It uses `System.Binary.Deserialize` syscall.

func Serialize

func Serialize(item interface{}) []byte

Serialize serializes any given item into a byte slice. It works for all regular VM types (not ones from interop package) and allows to save them in storage or pass into Notify and then Deserialize them on the next run or in the external event receiver. It uses `System.Binary.Serialize` syscall.

Types

This section is empty.

Jump to

Keyboard shortcuts

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