Internal
Dynvec codec for the molecule built-in type vector when the inner type has a dynamic size.
vector
Attention that it is invalid to create dynvec on fixed size inner type.
import { mol } from "@ckb-cobuild/molecule";const ByteOpt = mol.option("ByteOpt", mol.byte);const ByteOptVec = mol.dynvec("ByteOptVec", ByteOpt); Copy
import { mol } from "@ckb-cobuild/molecule";const ByteOpt = mol.option("ByteOpt", mol.byte);const ByteOptVec = mol.dynvec("ByteOptVec", ByteOpt);
Generated using TypeDoc
Dynvec codec for the molecule built-in type
vector
when the inner type has a dynamic size.Attention that it is invalid to create dynvec on fixed size inner type.