breeze.io

ByteConverter

abstract class ByteConverter extends AnyRef

Reads and writes data from byte values.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ByteConverter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def byteToUInt8(b0: Byte): Short

    Takes 1 Byte and returns a UInt8 (as Short)

  8. 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

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. def toString(): String

    Definition Classes
    AnyRef → Any
  21. def uInt8ToByte(value: Short): Byte

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

  22. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped