Class

breeze.io

ByteConverter

Related Doc: package io

Permalink

abstract class ByteConverter extends AnyRef

Reads and writes data from byte values.

Linear Supertypes
AnyRef, Any
Known Subclasses
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()

    Permalink

Abstract Value Members

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

    Permalink

    Takes 2 Bytes and returns an Int16 (Short)

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

    Permalink

    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

    Permalink

    Takes 8 Bytes and returns a Int64 (Long)

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

    Permalink

    Takes 2 Bytes and returns a UInt16 (as Char)

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

    Permalink

    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

    Permalink

    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]

    Permalink

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink

    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]

    Permalink

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

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

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

    Permalink

    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

    Permalink

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

  7. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

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

    Permalink

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

  19. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    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