class UnsafeBuffer : AbstractBuffer, Closeable
UnsafeBuffer(initialSize: Long)UnsafeBuffer(byteArray: ByteArray) |
val allocated: Int |
|
var position: Int |
fun checkAvailable(moreSize: Int): Unit |
|
fun close(): Unit |
|
fun finalize(): Unit |
|
fun getArray(): ByteArray |
|
fun readBoolean(): Boolean |
|
fun readBooleanArray(): BooleanArray |
|
fun readByte(): Byte |
|
fun readByteArray(): ByteArray |
|
fun readByteArrayRaw(array: ByteArray): Unit |
|
fun readChar(): Char |
|
fun readCharArray(): CharArray |
|
fun readDouble(): Double |
|
fun readDoubleArray(): DoubleArray |
|
fun readFloat(): Float |
|
fun readFloatArray(): FloatArray |
|
fun readInt(): Int |
|
fun readIntArray(): IntArray |
|
fun readLong(): Long |
|
fun readLongArray(): LongArray |
|
fun readNullableString(): String? |
|
fun readShort(): Short |
|
fun readShortArray(): ShortArray |
|
fun reset(): Unit
Sets position to zero, can discard data in order to shrink backing storage |
|
fun writeBoolean(value: Boolean): Unit |
|
fun writeBooleanArray(array: BooleanArray): Unit |
|
fun writeByte(value: Byte): Unit |
|
fun writeByteArray(array: ByteArray): Unit |
|
fun writeByteArrayRaw(array: ByteArray, count: Int?): Unit |
|
fun writeChar(value: Char): Unit |
|
fun writeCharArray(array: CharArray): Unit |
|
fun writeDouble(value: Double): Unit |
|
fun writeDoubleArray(array: DoubleArray): Unit |
|
fun writeFloat(value: Float): Unit |
|
fun writeFloatArray(array: FloatArray): Unit |
|
fun writeInt(value: Int): Unit |
|
fun writeIntArray(array: IntArray): Unit |
|
fun writeLong(value: Long): Unit |
|
fun writeLongArray(array: LongArray): Unit |
|
fun writeNullableString(value: String?): Unit |
|
fun writeShort(value: Short): Unit |
|
fun writeShortArray(array: ShortArray): Unit |
fun readString(): String |
|
open fun readUByte(): <ERROR CLASS> |
|
open fun readUByteArray(): <ERROR CLASS> |
|
open fun readUInt(): <ERROR CLASS> |
|
open fun readUIntArray(): <ERROR CLASS> |
|
open fun readULong(): <ERROR CLASS> |
|
open fun readULongArray(): <ERROR CLASS> |
|
open fun readUShort(): <ERROR CLASS> |
|
open fun readUShortArray(): <ERROR CLASS> |
|
fun rewind(): Unit
Sets position to zero, keeps all data |
|
fun writeString(value: String): Unit |
|
open fun writeUByte(value: <ERROR CLASS>): Unit |
|
open fun writeUByteArray(array: <ERROR CLASS>): Unit |
|
open fun writeUInt(value: <ERROR CLASS>): Unit |
|
open fun writeUIntArray(array: <ERROR CLASS>): Unit |
|
open fun writeULong(value: <ERROR CLASS>): Unit |
|
open fun writeULongArray(array: <ERROR CLASS>): Unit |
|
open fun writeUShort(value: <ERROR CLASS>): Unit |
|
open fun writeUShortArray(array: <ERROR CLASS>): Unit |
fun <T> T.deepClonePolymorphic(): T |
|
fun <T> AbstractBuffer.readArray(inner: () -> T): Array<T> |
|
fun AbstractBuffer.readBool(): Boolean |
|
fun AbstractBuffer.readDateTime(): <ERROR CLASS> |
|
fun <T : Enum<T>> AbstractBuffer.readEnum(): T |
|
fun <T : Enum<T>> AbstractBuffer.readEnumSet(): <ERROR CLASS><T> |
|
fun AbstractBuffer.readGuid(): <ERROR CLASS> |
|
fun AbstractBuffer.readInternId(): InternId |
|
fun <T> AbstractBuffer.readList(inner: () -> T): List<T> |
|
fun <T : Any> AbstractBuffer.readNullable(inner: () -> T): T? |
|
fun AbstractBuffer.readRdId(): RdId |
|
fun AbstractBuffer.readSecureString(): RdSecureString |
|
fun AbstractBuffer.readUri(): <ERROR CLASS> |
|
fun AbstractBuffer.readUuid(): <ERROR CLASS> |
|
fun AbstractBuffer.readVoid(): Unit |
|
fun <T> AbstractBuffer.writeArray(value: Array<T>, elemWriter: (T) -> Unit): Unit |
|
fun AbstractBuffer.writeBool(value: Boolean): Unit |
|
fun AbstractBuffer.writeDateTime(value: <ERROR CLASS>): Unit |
|
fun <T : Enum<T>> AbstractBuffer.writeEnum(value: Enum<T>): Unit |
|
fun <T : Enum<T>> AbstractBuffer.writeEnumSet(set: <ERROR CLASS><T>): Unit |
|
fun AbstractBuffer.writeGuid(value: <ERROR CLASS>): Unit |
|
fun AbstractBuffer.writeInternId(id: InternId): Unit |
|
fun <T> AbstractBuffer.writeList(value: List<T>, elemWriter: (T) -> Unit): Unit |
|
fun <T : Any> AbstractBuffer.writeNullable(value: T?, elemWriter: (T) -> Unit): Unit |
|
fun AbstractBuffer.writeRdId(value: RdId): Unit |
|
fun AbstractBuffer.writeSecureString(string: RdSecureString): Unit |
|
fun AbstractBuffer.writeUri(value: <ERROR CLASS>): Unit |
|
fun AbstractBuffer.writeUuid(value: <ERROR CLASS>): Unit |
|
fun AbstractBuffer.writeVoid(void: Unit): Unit |