IntBuffer

class IntBuffer(buffer: Buffer, val capacity: Int, baseOffset: Long = 0) : Comparable<IntBuffer>

A platform-agnostic IntBuffer built on top of a kotlin‑io Buffer.

The capacity is in numbers of ints (each int is 4 bytes). The position and limit are expressed in ints. When reading/writing, This version tracks an extra baseOffset (in bytes) so that view buffers (via slice()) share the same underlying Buffer while translating int indices appropriately.

All indices (position, limit, capacity) are in units of ints (4 bytes). we convert indices by multiplying by 4.

Constructors

Link copied to clipboard
constructor(buffer: Buffer, capacity: Int, baseOffset: Long = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var limit: Int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun compareTo(other: IntBuffer): Int
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
fun get(): Int
fun get(index: Int): Int
fun get(dst: IntArray, offset: Int, length: Int): IntBuffer
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
fun limit(newLimit: Int): IntBuffer
Link copied to clipboard
fun position(newPosition: Int): IntBuffer
Link copied to clipboard
fun put(value: Int): IntBuffer
fun put(index: Int, value: Int): IntBuffer
Link copied to clipboard
fun remaining(): Int
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String