Helios API/ API Reference/ Classes/
UplcByteArray
Primitive equivalent of ByteArrayData
.
Implements
Hierarchy
-
↳
UplcByteArray
Implements
Index
Constructors
constructor
• new UplcByteArray(site
, bytes
)
Parameters
Name | Type |
---|---|
site | Site |
bytes | number [] |
Overrides
Accessors
bool
• get
bool(): boolean
Returns
boolean
Implementation of
Inherited from
UplcValueImpl.bool
bytes
• get
bytes(): number
[]
Returns
number
[]
Implementation of
Inherited from
UplcValueImpl.bytes
data
• get
data(): UplcData
Returns
Implementation of
Inherited from
UplcValueImpl.data
first
• get
first(): UplcValue
Returns
Implementation of
Inherited from
UplcValueImpl.first
flatSize
• get
flatSize(): number
4 for header, 8 bits per byte, 8 bits per chunk of 256 bytes, 8 bits final padding
Returns
number
Implementation of
int
• get
int(): bigint
Returns
bigint
Implementation of
Inherited from
UplcValueImpl.int
itemType
• get
itemType(): UplcType
Returns
Implementation of
Inherited from
UplcValueImpl.itemType
length
• get
length(): number
Returns
number
Implementation of
Inherited from
UplcValueImpl.length
list
• get
list(): UplcValue
[]
Returns
Implementation of
Inherited from
UplcValueImpl.list
memSize
• get
memSize(): number
Returns
number
Implementation of
second
• get
second(): UplcValue
Returns
Implementation of
Inherited from
UplcValueImpl.second
site
• get
site(): Site
Returns
Implementation of
Inherited from
UplcValueImpl.site
string
• get
string(): string
Returns
string
Implementation of
Inherited from
UplcValueImpl.string
Methods
assertUnit
▸ assertUnit(): UplcUnit
Returns
Implementation of
Inherited from
copy
▸ copy(newSite
): UplcByteArray
Parameters
Name | Type |
---|---|
newSite | Site |
Returns
Implementation of
isAny
▸ isAny(): boolean
Returns
boolean
Implementation of
Inherited from
isData
▸ isData(): boolean
Returns
boolean
Implementation of
Inherited from
isList
▸ isList(): boolean
Distinguishes a list from a map
Returns
boolean
Implementation of
Inherited from
isPair
▸ isPair(): boolean
Distinguishes a pair from a mapItem
Returns
boolean
Implementation of
Inherited from
toFlatValue
▸ toFlatValue(bitWriter
): void
Encodes value with plutus flat encoding. Member function not named 'toFlat' as not to confuse with 'toFlat' member of terms.
Parameters
Name | Type |
---|---|
bitWriter | BitWriter |
Returns
void
Implementation of
Inherited from
toFlatValueInternal
▸ toFlatValueInternal(bitWriter
): void
Encodes value without type header
Parameters
Name | Type |
---|---|
bitWriter | BitWriter |
Returns
void
Implementation of
Inherited from
UplcValueImpl.toFlatValueInternal
transfer
▸ transfer(other
): any
Parameters
Name | Type |
---|---|
other | TransferUplcAst |
Returns
any
Implementation of
typeBits
▸ typeBits(): string
Returns
string