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
Ordering
- Alphabetic
- By Inheritance
Inherited
- BytesReader
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def get(): Int
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getPosition: Int
- def hasAtLeast(size: Long): Boolean
- def hasMore: Boolean
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def moveTo(newPosition: Long): BytesReader
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def read(size: Int): Slice[Byte]
- def readInt(): Int
- def readIntSigned(): Int
- def readIntUnsigned(): Int
- def readLong(): Long
- def readLongSigned(): Long
- def readLongUnsigned(): Long
-
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.
- def readString(size: Int, charset: Charset = StandardCharsets.UTF_8): String
- def resetPosition(): BytesReader
- val size: Long
- def skip(skip: Long): BytesReader
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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( ... )