Class Bytes

    • Field Summary

      • Fields inherited from class org.polkadot.types.codec.U8a

        raw
    • Constructor Summary

      Constructors 
      Constructor Description
      Bytes​(java.lang.Object value)  
    • Method Summary

      Modifier and Type Method Description
      int getEncodedLength()
      The length of the value when encoded as a Uint8Array
      byte[] toU8a​(boolean isBare)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.polkadot.types.Codec

        toU8a
    • Constructor Detail

      • Bytes

        public Bytes​(java.lang.Object value)
    • Method Detail

      • toU8a

        public byte[] toU8a​(boolean isBare)
        Specified by:
        toU8a in interface Codec
        Overrides:
        toU8a in class U8a
        Parameters:
        isBare - true when the value has none of the type-specific prefixes (internal) Encodes the value as a Uint8Array as per the parity-codec specifications