Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data PByteString s
- phexByteStr :: HasCallStack => String -> Term s PByteString
- pbyteStr :: ByteString -> Term s PByteString
- pconsBS :: Term s (PInteger :--> (PByteString :--> PByteString))
- psliceBS :: Term s (PInteger :--> (PInteger :--> (PByteString :--> PByteString)))
- plengthBS :: Term s (PByteString :--> PInteger)
- pindexBS :: Term s (PByteString :--> (PInteger :--> PInteger))
Documentation
data PByteString s Source #
Plutus BuiltinByteString
Instances
phexByteStr :: HasCallStack => String -> Term s PByteString Source #
Interpret a hex string as a PByteString.
pbyteStr :: ByteString -> Term s PByteString Source #
Deprecated: Use pconstant
instead.
Construct a PByteString term from a Haskell bytestring.
pconsBS :: Term s (PInteger :--> (PByteString :--> PByteString)) Source #
Prepend a byte, represented by a non negative PInteger
, to a PBytestring
.
psliceBS :: Term s (PInteger :--> (PInteger :--> (PByteString :--> PByteString))) Source #
Slice a PByteString
with given start index and slice length.
>>>
(pslice # 2 # 3 phexByteStr "4102afde5b2a") #== phexByteStr "afde5b"
plengthBS :: Term s (PByteString :--> PInteger) Source #
Find the length of a PByteString
.
pindexBS :: Term s (PByteString :--> (PInteger :--> PInteger)) Source #
PByteString
indexing function.