Package io.ktor.utils.io.js
Functions
Link copied to clipboard
Link copied to clipboard
fun ByteReadPacket.readArrayBuffer(n: Int = remaining.coerceAtMostMaxIntOrFail("Unable to make a new ArrayBuffer: packet is too big")): ArrayBuffer
Content copied to clipboard
Read exactly n bytes to a new array buffer instance
Link copied to clipboard
Content copied to clipboard
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun XMLHttpRequest.sendPacket(block: BytePacketBuilder.() -> Unit)
Content copied to clipboard
Link copied to clipboard
fun BytePacketBuilder.writeFully(src: ArrayBuffer, offset: Int = 0, length: Int = src.byteLength - offset)
Content copied to clipboard
fun BytePacketBuilder.writeFully(src: Int8Array, offset: Int = 0, length: Int = src.length - offset)
Content copied to clipboard