BufferBaseUtils
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
Value members
Concrete methods
Get a "true" or "false" string at the given index as a Boolean, without advancing the readerOffset.
Get a "true" or "false" string at the given index as a Boolean, without advancing the readerOffset.
Value parameters
- buffer
-
The buffer to read from.
- index
-
The absolute offset into the buffer.
Attributes
- Returns
-
The parsed boolean value.
Checks if a character does not require JSON escaping or encoding.
Checks if a character does not require JSON escaping or encoding.
Value parameters
- ch
-
the character to check
Attributes
- Returns
-
trueif the character is a basic ASCII character (code point less than0x80) that does not need JSON escaping
Parse a "true" or "false" string at the current readerOffset as a Boolean. Advances the readerOffset past the parsed characters.
Parse a "true" or "false" string at the current readerOffset as a Boolean. Advances the readerOffset past the parsed characters.
Value parameters
- buffer
-
The buffer to read from.
Attributes
- Returns
-
The parsed boolean value.
Parse a variable-length decimal string at the current readerOffset as a Byte. Advances the readerOffset past the parsed digits (and optional leading '-').
Parse a variable-length decimal string at the current readerOffset as a Byte. Advances the readerOffset past the parsed digits (and optional leading '-').
Value parameters
- buffer
-
The buffer to read from.
Attributes
- Returns
-
The parsed byte value.
- Throws
-
NumberFormatException
if the string does not represent a valid byte value.
Set "true" or "false" at the given index, without modifying the writerOffset.
Set "true" or "false" at the given index, without modifying the writerOffset.
Value parameters
- boolean
-
The boolean value to write.
- buffer
-
The buffer to write to.
- index
-
The absolute offset into the buffer.
Attributes
Write "true" or "false" at the current writerOffset.
Write "true" or "false" at the current writerOffset.
Value parameters
- boolean
-
The boolean value to write.
- buffer
-
The buffer to write to.
Attributes
Write the given Byte as a decimal ASCII string at the current writerOffset.
Write the given Byte as a decimal ASCII string at the current writerOffset.
Value parameters
- buffer
-
The buffer to write to.
- byte
-
The byte value to write.