Package org.polkadot.types.primitive
Class Bytes
- java.lang.Object
-
- org.polkadot.types.codec.U8a
-
- org.polkadot.types.primitive.Bytes
-
- All Implemented Interfaces:
Codec
- Direct Known Subclasses:
AttestedCandidate.HeadData,Digest.Other,Justification,Key,StorageData,StorageKey
public class Bytes extends U8a
-
-
Constructor Summary
Constructors Constructor Description Bytes(java.lang.Object value)
-
Method Summary
Modifier and Type Method Description intgetEncodedLength()The length of the value when encoded as a Uint8Arraybyte[]toU8a(boolean isBare)-
Methods inherited from class org.polkadot.types.codec.U8a
eq, isEmpty, length, subarray, toHex, toJson, toString
-
-
-
-
Method Detail
-
getEncodedLength
public int getEncodedLength()
The length of the value when encoded as a Uint8Array- Specified by:
getEncodedLengthin interfaceCodec- Overrides:
getEncodedLengthin classU8a
-
-