BufferStringUtils

cc.otavia.buffer.utils.BufferStringUtils

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object BufferUtils

Members list

Value members

Concrete methods

final def getEscapedChar(index: Int, buffer: Buffer): Char
final def getStringAsUUID(buffer: Buffer, index: Int): UUID

Parses the string content stored in the buffer as a UUID.

Parses the string content stored in the buffer as a UUID.

Value parameters

buffer

the buffer to read.

index

The read offset, an absolute offset into this buffer, to read from.

Attributes

Returns

The UUID represented by the string content.

final def readEscapedChar(buffer: Buffer): Char
final def readEscapedString(buffer: Buffer, len: Int): String
final def readStringAsUUID(buffer: Buffer): UUID

Parses the string content stored in the buffer as a UUID.

Parses the string content stored in the buffer as a UUID.

Value parameters

buffer

the buffer to read.

Attributes

Returns

The UUID represented by the string content.

final def setUUIDAsString(buffer: Buffer, index: Int, uuid: UUID): Unit

Writes into this buffer, all the bytes from the given uuid string. This not updates the writerOffset of this buffer.

Writes into this buffer, all the bytes from the given uuid string. This not updates the writerOffset of this buffer.

Value parameters

buffer

the buffer to write.

index

The write offset, an absolute offset into this buffer to write to.

uuid

uuid value.

Attributes

final def writeEscapedChar(buffer: Buffer, ch: Char): Unit
final def writeEscapedCharWithQuote(buffer: Buffer, ch: Char): Unit
final def writeEscapedString(buffer: Buffer, str: String): Unit
final def writeUUIDAsString(buffer: Buffer, uuid: UUID): Unit

Writes into this buffer, all the bytes from the given uuid string. This updates the writerOffset of this buffer.

Writes into this buffer, all the bytes from the given uuid string. This updates the writerOffset of this buffer.

Value parameters

buffer

the buffer to write.

uuid

uuid value.

Attributes

Inherited methods

final protected def byteToChar(b2: Byte): Char

Attributes

Inherited from:
BufferBaseUtils
final protected def digitCount(q0: Long): Int

Attributes

Inherited from:
BufferBaseUtils
final def getStringAsBoolean(buffer: Buffer, index: Int): Boolean

Attributes

Inherited from:
BufferBaseUtils
final protected def isLeap(year: Int): Boolean

Attributes

Inherited from:
BufferBaseUtils
final def isNonEscapedAscii(ch: Char): Boolean

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

true if the character is a basic ASCII character (code point less than 0x80) that does not need JSON escaping

Inherited from:
BufferBaseUtils
final def readStringAsBoolean(buffer: Buffer): Boolean

Attributes

Inherited from:
BufferBaseUtils
final def readStringAsByte(buffer: Buffer): Byte

Attributes

Inherited from:
BufferBaseUtils
final protected def rop(g: Long, cp: Int): Int

Attributes

Inherited from:
BufferBaseUtils
final protected def rop(g1: Long, g0: Long, cp: Long): Long

Attributes

Inherited from:
BufferBaseUtils
final def setBooleanAsString(buffer: Buffer, index: Int, boolean: Boolean): Unit

Attributes

Inherited from:
BufferBaseUtils
final protected def write18Digits(buffer: Buffer, x: Long, ds: Array[Short]): Unit

Attributes

Inherited from:
BufferBaseUtils
final protected def write2Digits(buffer: Buffer, q0: Int, ds: Array[Short]): Unit

Attributes

Inherited from:
BufferBaseUtils
final protected def write3Digits(buffer: Buffer, q0: Int, ds: Array[Short]): Unit

Attributes

Inherited from:
BufferBaseUtils
final protected def write4Digits(buffer: Buffer, q0: Int, ds: Array[Short]): Unit

Attributes

Inherited from:
BufferBaseUtils
final protected def write8Digits(buffer: Buffer, q0: Long, ds: Array[Short]): Unit

Attributes

Inherited from:
BufferBaseUtils
final def writeBooleanAsString(buffer: Buffer, boolean: Boolean): Unit

Attributes

Inherited from:
BufferBaseUtils
final def writeByteAsString(buffer: Buffer, byte: Byte): Unit

Attributes

Inherited from:
BufferBaseUtils
final protected def writePositiveIntDigits(q: Int, p: Int, buffer: Buffer, ds: Array[Short]): Unit

Attributes

Inherited from:
BufferBaseUtils