RenderUtils

upickle.core.RenderUtils
object RenderUtils

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

final def escapeByte(unicodeCharBuilder: CharBuilder, sb: ByteBuilder, s: CharSequence, escapeUnicode: Boolean, wrapQuotes: Boolean): Unit

Attempts to write the given CharSequence into the given ByteBuilder.

Attempts to write the given CharSequence into the given ByteBuilder.

Optimistically treats the characters as ASCII characters, which can be directly converted to bytes and written. Only if we encounter a unicode character do we fall back to the slow path of constructing a java.lang.String which we UTF-8 encode before adding the to output.

Attributes

def escapeChar(unicodeCharBuilder: CharBuilder, sb: CharBuilder, s: CharSequence, escapeUnicode: Boolean, wrapQuotes: Boolean): CharBuilder
final def escapeChar0(i0: Int, len: Int, sb: CharBuilder, s: CharSequence, escapeUnicode: Boolean, wrapQuotes: Boolean): CharBuilder
def escapeSingleByteUnicodeRaw(unicodeCharBuilder: CharBuilder, sb: ByteBuilder, s: CharSequence, escapeUnicode: Boolean, i0: Int, len0: Int, wrapQuotes: Boolean): Unit
def hex(i: Int): Int
def intStringSize(x0: Int): Int
def longStringSize(x0: Long): Int
def toHex(nibble: Int): Char

Deprecated methods

final def escapeChar0(i0: Int, naiveOutLen: Int, len: Int, sb: CharBuilder, s: CharSequence, escapeUnicode: Boolean, wrapQuotes: Boolean): CharBuilder

Attributes

Deprecated
true
def escapeSingleByte(sb: ByteBuilder, naiveOutLen: Int, i: Int, c: Char): Unit

Attributes

Deprecated
true
def escapeSingleByteUnicodeEscape(sb: ByteBuilder, i: Int, naiveOutLen: Int, c: Char): Unit

Attributes

Deprecated
true
def escapeSingleByteUnicodeRaw(unicodeCharBuilder: CharBuilder, sb: ByteBuilder, s: CharSequence, escapeUnicode: Boolean, i0: Int, len0: Int, naiveOutLen: Int, wrapQuotes: Boolean): Unit

Attributes

Deprecated
true
def escapeSingleChar(sb: CharBuilder, naiveOutLen: Int, i: Int, c: Char): Unit

Attributes

Deprecated
true
def escapeSingleCharUnicodeEscape(naiveOutLen: Int, sb: CharBuilder, i: Int, c: Char): Unit

Attributes

Deprecated
true

Concrete fields

final val hexChars: Array[Int]