Implement this interface so that you can use Args to serialize/de-serialize your objects.
Args
The constructor of the class implementing this interface must have default value for each argument.
const args = new Args().add(new Address(input)); // serializeconst address = args.nextSerializable(new Address()).unwrap(); Copy
const args = new Args().add(new Address(input)); // serializeconst address = args.nextSerializable(new Address()).unwrap();
the serialized data
current offset
the new offset wrapped in a Result
Result
it must modify the current object
nextSerializable
the bytes
Generated using TypeDoc
Implement this interface so that you can use
Args
to serialize/de-serialize your objects.The constructor of the class implementing this interface must have default value for each argument.
Example