Object

swaydb.data.util

ByteUtil

Related Doc: package util

Permalink

object ByteUtil

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

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. def addString(string: String, bytes: Slice[Byte], charsets: Charset): Slice[Byte]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  15. def readBoolean(reader: Reader): IO[Boolean]

    Permalink
  16. def readInt(bytes: Slice[Byte]): Int

    Permalink
  17. def readInt(reader: Reader): IO[Int]

    Permalink
  18. def readLastUnsignedInt(slice: Slice[Byte]): IO[(Int, Int)]

    Permalink

    returns

    Tuple where the first integer is the unsigned integer and the second is the number of bytes read.

  19. def readLong(reader: Reader): IO[Long]

    Permalink
  20. def readLong(bytes: Slice[Byte]): Long

    Permalink
  21. def readSignedInt(slice: Slice[Byte]): IO[Int]

    Permalink
  22. def readSignedInt(reader: Reader): IO[Int]

    Permalink
  23. def readSignedLong(slice: Slice[Byte]): IO[Long]

    Permalink
  24. def readSignedLong(reader: Reader): IO[Long]

    Permalink
  25. def readString(slice: Slice[Byte], charset: Charset): String

    Permalink
  26. def readString(size: Int, reader: Reader, charset: Charset): IO[String]

    Permalink
  27. def readString(reader: Reader, charset: Charset): IO[String]

    Permalink
  28. def readUnsignedInt(slice: Slice[Byte]): IO[Int]

    Permalink
  29. def readUnsignedInt(reader: Reader): IO[Int]

    Permalink
  30. def readUnsignedLong(slice: Slice[Byte]): IO[Long]

    Permalink
  31. def readUnsignedLong(reader: Reader): IO[Long]

    Permalink
  32. def sizeOf(long: Long): Int

    Permalink
  33. def sizeOf(int: Int): Int

    Permalink
  34. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  36. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def writeInt(int: Int, slice: Slice[Byte]): Unit

    Permalink
  40. def writeLong(long: Long, slice: Slice[Byte]): Unit

    Permalink
  41. def writeSignedInt(x: Int, slice: Slice[Byte]): Unit

    Permalink

    ************************************************** Credit - https://github.com/larroy/varint-scala

    ************************************************** Credit - https://github.com/larroy/varint-scala

    Duplicate functions here. This code is crucial for read performance and the most frequently used. Creating reader on each read will be expensive therefore the functions are repeated for slice and reader.

    Need to re-evaluate this code and see if abstract functions can be used. ***********************************************

  42. def writeSignedLong(long: Long, slice: Slice[Byte]): Unit

    Permalink
  43. def writeUnsignedInt(int: Int, slice: Slice[Byte]): Unit

    Permalink
  44. def writeUnsignedIntReversed(int: Int): Slice[Byte]

    Permalink
  45. def writeUnsignedLong(long: Long, slice: Slice[Byte]): Unit

    Permalink

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