object CryptoBytesUtil extends CryptoBytesUtil
- Alphabetic
- By Inheritance
- CryptoBytesUtil
- CryptoBytesUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def addPadding(paddingNeeded: Int, hex: String): String
Adds the amount padding bytes needed to fix the size of the hex string for instance, ints are required to be 4 bytes.
Adds the amount padding bytes needed to fix the size of the hex string for instance, ints are required to be 4 bytes. If the number is just 1 it will only take 1 byte. We need to pad the byte with an extra 3 bytes so the result is 00000001 instead of just 1.
- Definition Classes
- CryptoBytesUtil
- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bitVectorToBytes(bits: BitVector): ByteVector
Converts a sequence of bit vectors to a sequence of bytes
Converts a sequence of bit vectors to a sequence of bytes
- Definition Classes
- CryptoBytesUtil
- def byteToBitVector(byte: Byte): BitVector
Converts a byte to a bit vector representing that byte
Converts a byte to a bit vector representing that byte
- Definition Classes
- CryptoBytesUtil
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decodeHex(hex: String): ByteVector
- Definition Classes
- CryptoBytesUtil
- def encodeHex(bigInt: BigInt): String
- Definition Classes
- CryptoBytesUtil
- def encodeHex(short: Short): String
- Definition Classes
- CryptoBytesUtil
- def encodeHex(int: Int): String
- Definition Classes
- CryptoBytesUtil
- def encodeHex(long: Long): String
Encodes a long number to a hex string, pads it with an extra '0' char if the hex string is an odd amount of characters.
Encodes a long number to a hex string, pads it with an extra '0' char if the hex string is an odd amount of characters.
- Definition Classes
- CryptoBytesUtil
- def encodeHex(byte: Byte): String
- Definition Classes
- CryptoBytesUtil
- def encodeHex(bytes: ByteVector): String
- Definition Classes
- CryptoBytesUtil
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flipEndianness(bytes: ByteVector): String
Flips the endianness of the given sequence of bytes.
Flips the endianness of the given sequence of bytes.
- Definition Classes
- CryptoBytesUtil
- def flipEndianness(hex: String): String
Flips the endianness of the give hex string.
Flips the endianness of the give hex string.
- Definition Classes
- CryptoBytesUtil
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hexToByte(hex: String): Byte
Converts a two character hex string to its byte representation.
Converts a two character hex string to its byte representation.
- Definition Classes
- CryptoBytesUtil
- def isBitSet(byte: Byte, index: Int): Boolean
Checks if the bit at the given index is set
Checks if the bit at the given index is set
- Definition Classes
- CryptoBytesUtil
- def isHex(str: String): Boolean
Tests if a given string is a hexadecimal string.
Tests if a given string is a hexadecimal string.
- Definition Classes
- CryptoBytesUtil
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toByteVector[T <: NetworkElement](h: Seq[T]): ByteVector
- Definition Classes
- CryptoBytesUtil
- Annotations
- @inline()
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()