BinaryData

final class BinaryData(val bytes: Array[Byte], val offset: Int, val length: Int) extends BinaryData_PlatformSpecific_Instance

Immutable blob of binary data.

Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def appendBase64(sb: StringBuilder): Unit
@inline
def appendBase64(sb: StringBuilder): Unit
def binaryLikeString: String
def describe(byteLimit: Int, sep: String): String
def describeBytes(limit: Int, sep: String): String
def drop(n: Int): BinaryData
def dropRight(n: Int): BinaryData
override def equals(o: Any): Boolean
Definition Classes
Any
override def hashCode: Int
Definition Classes
Any
def hex: String
@inline
def isEmpty: Boolean
@inline
def nonEmpty: Boolean
def take(n: Int): BinaryData
def takeRight(n: Int): BinaryData
def toBase64: String
def toNewArray: Array[Byte]
def toNewByteBuffer: ByteBuffer
override def toString: String
Definition Classes
Any
def toStringAsUtf8: String
def unsafeByteBuffer: ByteBuffer

unsafe in that the underlying bytes could be modified via access to unsafeArray

unsafe in that the underlying bytes could be modified via access to unsafeArray

def writeTo(os: OutputStream): Unit

Concrete fields

val length: Int
lazy val unsafeArray: Array[Byte]

unsafe in that you might get back the underlying array which is mutable

unsafe in that you might get back the underlying array which is mutable