class VLQByteBufferReader extends VLQReader
Not thread safe
- Alphabetic
- By Inheritance
- VLQByteBufferReader
- VLQReader
- Reader
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new VLQByteBufferReader(buf: ByteBuffer)
Type Members
-
type
CH = ByteBuffer
Type of encoded data
Type of encoded data
- Definition Classes
- VLQByteBufferReader → Reader
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
consumed: Int
Returns the number of decoded elements
Returns the number of decoded elements
- returns
The number of decoded elements
- Definition Classes
- VLQByteBufferReader → Reader
- Annotations
- @inline()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
getBits(size: Int): Array[Boolean]
Decode array of boolean values
-
def
getBoolean(): Boolean
Decode boolean
-
def
getByte(): Byte
Decode signed byte
-
def
getBytes(size: Int): Array[Byte]
Decode array of byte values
Decode array of byte values
- size
expected size of decoded array
- Definition Classes
- VLQByteBufferReader → Reader
- Annotations
- @inline()
-
def
getChunk(size: Int): ByteBuffer
Returns encoded data at current position
Returns encoded data at current position
- Definition Classes
- VLQByteBufferReader → Reader
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getInt(): Int
Decode signed Int previously encoded with VLQWriter.putInt using VLQ with ZigZag.
Decode signed Int previously encoded with VLQWriter.putInt using VLQ with ZigZag.
- returns
signed Int
- Definition Classes
- VLQReader → Reader
- Annotations
- @inline()
- Note
Uses ZigZag encoding. Should be used to decode only a value that was previously encoded with VLQByteBufferWriter.putInt.
- See also
-
def
getLong(): Long
Decode signed Long previously encoded with VLQWriter.putLong using VLQ with ZigZag.
Decode signed Long previously encoded with VLQWriter.putLong using VLQ with ZigZag.
- returns
signed Long
- Definition Classes
- VLQReader → Reader
- Annotations
- @inline()
- Note
Uses ZigZag encoding. Should be used to decode only a value that was previously encoded with VLQWriter.putLong.
- See also
-
def
getOption[T](getValue: ⇒ T): Option[T]
Decode optional value
-
def
getShort(): Short
Decode signed Short previously encoded with VLQWriter.putShort using VLQ and then ZigZag.
Decode signed Short previously encoded with VLQWriter.putShort using VLQ and then ZigZag.
- returns
signed Short
- Definition Classes
- VLQReader → Reader
- Annotations
- @inline()
- Note
Uses VLQ and then ZigZag encoding. Should be used to decode only a value that was previously encoded with VLQByteBufferWriter.putShort.
- See also
-
def
getShortString(): String
Decode String is shorter than 256 bytes
-
def
getUByte(): Int
Decode positive Byte
-
def
getUInt(): Long
Decode Int previously encoded with VLQWriter.putUInt using VLQ.
Decode Int previously encoded with VLQWriter.putUInt using VLQ.
- returns
Long
-
def
getULong(): Long
Decode Long previously encoded with VLQWriter.putULong using VLQ.
Decode Long previously encoded with VLQWriter.putULong using VLQ.
- returns
Long
-
def
getUShort(): Int
Decode Short previously encoded with VLQWriter.putUShort using VLQ.
Decode Short previously encoded with VLQWriter.putUShort using VLQ.
- returns
Int
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mark(): VLQByteBufferReader.this.type
Sets the mark to current position
Sets the mark to current position
- Definition Classes
- VLQByteBufferReader → Reader
- Annotations
- @inline()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newReader(chunk: ByteBuffer): Aux[ByteBuffer]
Creates new instance of this Reader
Creates new instance of this Reader
- chunk
encoded data
- Definition Classes
- VLQByteBufferReader → Reader
- Annotations
- @inline()
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
peekByte(): Byte
Get a byte at current position without advancing the position.
Get a byte at current position without advancing the position.
- returns
byte at current position
- Definition Classes
- VLQByteBufferReader → Reader
- Annotations
- @inline()
-
def
position: Int
Returns current position
Returns current position
- returns
position
- Definition Classes
- VLQByteBufferReader → Reader
- Annotations
- @inline()
-
def
position_=(p: Int): Unit
Sets position
-
def
remaining: Int
Returns the number of elements between the current position and the end of Reader
Returns the number of elements between the current position and the end of Reader
- returns
The number of elements remaining in th Reader
- Definition Classes
- VLQByteBufferReader → Reader
- Annotations
- @inline()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated