slice
scrypt-ts-opcat / slice
Function: slice()
slice(
byteString
,start
,end
?):ByteString
Defined in: packages/scrypt-ts-opcat/src/smart-contract/fns/byteString.ts:74
Returns a section of a ByteString.
Parameters
byteString
The ByteString.
start
The beginning byte index of the specified portion of ByteString, included.
end?
The end byte index of the specified portion of ByteString, excluded. If this value is not specified, the sub-section continues to the end of ByteString.