Spec-Zone.ru › Kotlin 2

Pointer

kotlin-stdlib/kotlin.wasm.unsafe/Pointer

Начиная с Kotlin: 1.8

value class Pointer(val address: UInt)

Тип указателя на линейную память. Соответствует типу i32 в 32-разрядной архитектуре Wasm.

Конструкторы

Pointer
constructor(address: UInt)

Свойства

address

Начиная с Kotlin: 1.8

val address: UInt

Функции

loadByte

Начиная с Kotlin: 1.8

fun loadByte(): Byte

Загружает значение Byte (8 бит)

loadInt

Начиная с Kotlin: 1.8

fun loadInt(): Int

Загружает значение Int (32 бита)

loadLong

Начиная с Kotlin: 1.8

fun loadLong(): Long

Загружает значение Long (64 бита)

loadShort

Начиная с Kotlin: 1.8

fun loadShort(): Short

Загружает значение Short (16 бит)

minus

Начиная с Kotlin: 1.8

operator fun minus(other: Int): Pointer

Вычитает Int из адреса этого Pointer

operator fun minus(other: UInt): Pointer

Вычитает UInt из адреса этого Pointer

plus

Начиная с Kotlin: 1.8

operator fun plus(other: Int): Pointer

Прибавляет Int к адресу этого Pointer

operator fun plus(other: UInt): Pointer

Прибавляет UInt к адресу этого Pointer

storeByte

Начиная с Kotlin: 1.8

fun storeByte(value: Byte)

Сохраняет значение Byte (8 бит) значение

storeInt

Начиная с Kotlin: 1.8

fun storeInt(value: Int)

Сохраняет значение Int (32 бита) значение

storeLong

Начиная с Kotlin: 1.8

fun storeLong(value: Long)

Сохраняет значение Long (64 бита) значение

storeShort

Начиная с Kotlin: 1.8

fun storeShort(value: Short)

Сохраняет значение Short (16 бит) значение

© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.wasm.unsafe/-pointer/index.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API