Packages

c

breeze.io

ByteConverter

abstract class ByteConverter extends AnyRef

Reads and writes data from byte values.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ByteConverter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ByteConverter()

Abstract Value Members

  1. abstract def bytesToInt16(b0: Byte, b1: Byte): Short

    Takes 2 Bytes and returns an Int16 (Short)

  2. abstract def bytesToInt32(b0: Byte, b1: Byte, b2: Byte, b3: Byte): Int

    Takes 4 Bytes and returns a UInt32 (Int)

  3. abstract def bytesToInt64(b0: Byte, b1: Byte, b2: Byte, b3: Byte, b4: Byte, b5: Byte, b6: Byte, b7: Byte): Long

    Takes 8 Bytes and returns a Int64 (Long)

  4. abstract def bytesToUInt16(b0: Byte, b1: Byte): Char

    Takes 2 Bytes and returns a UInt16 (as Char)

  5. abstract def bytesToUInt32(b0: Byte, b1: Byte, b2: Byte, b3: Byte): Long

    Takes 4 Bytes and returns a UInt32 (as Long)

  6. abstract def bytesToUInt64Shifted(b0: Byte, b1: Byte, b2: Byte, b3: Byte, b4: Byte, b5: Byte, b6: Byte, b7: Byte): Long

    Takes 8 Bytes and returns a UInt64 shifted down to the range of Int64 (Long).

    Takes 8 Bytes and returns a UInt64 shifted down to the range of Int64 (Long). The shifted number range runs from -263 to 263-1, so that UInt64 can be represented in the JVM long (Int64). Addition and subtraction are valid with these long representations, multiplication and division, naturally, are not.

  7. abstract def int16ToBytes(value: Short): Array[Byte]

    Takes an Int16 (Short), and returns an array of 2 bytes

  8. abstract def int32ToBytes(value: Int): Array[Byte]

    Takes an Int32 (Int), and returns an array of 4 bytes

  9. abstract def int64ToBytes(value: Long): Array[Byte]

    Takes an Int64 (Long), and returns an array of 8 bytes

  10. abstract def uInt16ToBytes(value: Char): Array[Byte]

    Takes a UInt16 (Char), and returns an array of 2 bytes

  11. abstract def uInt32ToBytes(value: Long): Array[Byte]

    Takes a UInt32 (as Long), and returns an array of 4 bytes

  12. abstract def uInt64ShiftedToBytes(value: Long): Array[Byte]

    Takes an Int64 (Long), and returns an array of 8 bytes, shifted up to a UInt64.

    Takes an Int64 (Long), and returns an array of 8 bytes, shifted up to a UInt64. See breeze.io.ByteConverter.bytesToUInt64Shifted()

  13. abstract def uInt64ToBytes(value: ULong): Array[Byte]

    Takes a UInt64 (as ULong), and returns an array of 8 bytes

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def byteToUInt8(b0: Byte): Short

    Takes 1 Byte and returns a UInt8 (as Short)

  6. final def bytesToUInt64(b0: Byte, b1: Byte, b2: Byte, b3: Byte, b4: Byte, b5: Byte, b6: Byte, b7: Byte): ULong

    Takes 8 Bytes and returns a UInt64 (as ULong), throwing an error if it overflows Long, which is Int64

  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. def uInt8ToByte(value: Short): Byte

    Takes an UInt8 (as Sort), and returns a bytes

  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped