mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-04 19:02:28 +00:00
16 lines
403 B
Go
16 lines
403 B
Go
package binary
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/core/interop"
|
|
"github.com/nspcc-dev/neo-go/pkg/vm"
|
|
)
|
|
|
|
// Serialize serializes top stack item into a ByteArray.
|
|
func Serialize(ic *interop.Context) error {
|
|
return vm.RuntimeSerialize(ic.VM)
|
|
}
|
|
|
|
// Deserialize deserializes ByteArray from a stack into an item.
|
|
func Deserialize(ic *interop.Context) error {
|
|
return vm.RuntimeDeserialize(ic.VM)
|
|
}
|