# serialize
# serialize
# .module.exports(data, type) ⇒ Object
⏏
Kind: static method of serialize
Returns: Object
- a buffer
Param | Type | Description |
---|---|---|
data | * | a buffer |
type | Object | you can import types from as: import {Types} from 'gxclient' |
Example
import { serialize, Types } from 'gxclient'
serialize('hello', Types.string).toString('hex') // => 0568656c6c6f