Packages

c

swaydb.data.slice

BytesReader

class BytesReader extends AnyRef

Wrapper around SliceReader to perform eager fetches.

SliceReader is used internally and should not be exposed to the API.

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

Instance Constructors

  1. new BytesReader(slice: Slice[Byte])

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 clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def get(): Int
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def getPosition: Int
  12. def hasAtLeast(size: Long): Boolean
  13. def hasMore: Boolean
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def moveTo(newPosition: Long): BytesReader
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def read(size: Int): Slice[Byte]
  21. def readInt(): Int
  22. def readIntSigned(): Int
  23. def readIntUnsigned(): Int
  24. def readLong(): Long
  25. def readLongSigned(): Long
  26. def readLongUnsigned(): Long
  27. def readRemainingAsString(charset: Charset = StandardCharsets.UTF_8): String

    Note: This function does not operate on the original Slice if the String being read is a sub-slice of another Slice.

    Note: This function does not operate on the original Slice if the String being read is a sub-slice of another Slice. Another copy of the Array that represent the String's bytes will be created.

    This is because

    new String(array, offset, size, charset)

    requires an Array and not an Iterable. Slice currently does not expose the internal Array.

  28. def readString(size: Int, charset: Charset = StandardCharsets.UTF_8): String
  29. def resetPosition(): BytesReader
  30. val size: Long
  31. def skip(skip: Long): BytesReader
  32. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped