abstract class ByteConverter extends AnyRef
Reads and writes data from byte values.
- Alphabetic
- By Inheritance
- ByteConverter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ByteConverter()
Abstract Value Members
-
abstract
def
bytesToInt16(b0: Byte, b1: Byte): Short
Takes 2 Bytes and returns an Int16 (Short)
-
abstract
def
bytesToInt32(b0: Byte, b1: Byte, b2: Byte, b3: Byte): Int
Takes 4 Bytes and returns a UInt32 (Int)
-
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)
-
abstract
def
bytesToUInt16(b0: Byte, b1: Byte): Char
Takes 2 Bytes and returns a UInt16 (as Char)
-
abstract
def
bytesToUInt32(b0: Byte, b1: Byte, b2: Byte, b3: Byte): Long
Takes 4 Bytes and returns a UInt32 (as Long)
-
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.
-
abstract
def
int16ToBytes(value: Short): Array[Byte]
Takes an Int16 (Short), and returns an array of 2 bytes
-
abstract
def
int32ToBytes(value: Int): Array[Byte]
Takes an Int32 (Int), and returns an array of 4 bytes
-
abstract
def
int64ToBytes(value: Long): Array[Byte]
Takes an Int64 (Long), and returns an array of 8 bytes
-
abstract
def
uInt16ToBytes(value: Char): Array[Byte]
Takes a UInt16 (Char), and returns an array of 2 bytes
-
abstract
def
uInt32ToBytes(value: Long): Array[Byte]
Takes a UInt32 (as Long), and returns an array of 4 bytes
-
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()
-
abstract
def
uInt64ToBytes(value: ULong): Array[Byte]
Takes a UInt64 (as ULong), and returns an array of 8 bytes
Concrete 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
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
byteToUInt8(b0: Byte): Short
Takes 1 Byte and returns a UInt8 (as Short)
-
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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
uInt8ToByte(value: Short): Byte
Takes an UInt8 (as Sort), and returns a bytes
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )