wgpu4k-native
Toggle table of contents
v24.0.1
android
Platform filter
android
Switch theme
Search in API
wgpu4k-native
wgpu4k-native
/
java.lang.foreign
/
MemorySegment
Memory
Segment
android
class
MemorySegment
(
val
pointer
:
Pointer
,
val
size
:
Long
=
-1
)
Members
Constructors
Memory
Segment
Link copied to clipboard
android
constructor
(
address
:
Long
,
size
:
Long
=
-1
)
constructor
(
pointer
:
Pointer
,
size
:
Long
=
-1
)
Types
Companion
Link copied to clipboard
android
object
Companion
Properties
pointer
Link copied to clipboard
android
val
pointer
:
Pointer
size
Link copied to clipboard
android
val
size
:
Long
Functions
as
Slice
Link copied to clipboard
android
fun
asSlice
(
offest
:
Long
,
size
:
Long
=
0
)
:
MemorySegment
fill
With
Zero
Link copied to clipboard
android
fun
fillWithZero
(
)
get
Link copied to clipboard
android
fun
get
(
layout
:
ValueLayout.OfDouble
?
,
offest
:
Long
)
:
Double
fun
get
(
layout
:
ValueLayout.OfFloat
?
,
offest
:
Long
)
:
Float
fun
get
(
layout
:
ValueLayout.OfInt
?
,
offest
:
Long
)
:
Int
fun
get
(
layout
:
ValueLayout.OfLong
?
,
offest
:
Long
)
:
Long
fun
get
(
layout
:
ValueLayout.OfShort
?
,
offest
:
Long
)
:
Short
fun
get
(
layout
:
AddressLayout
?
,
offest
:
Long
)
:
MemorySegment
reinterpret
Link copied to clipboard
android
fun
reinterpret
(
l
:
Long
,
arena
:
Arena
,
cleanup
:
Consumer
<
MemorySegment
?
>
)
:
MemorySegment
set
Link copied to clipboard
android
fun
set
(
layout
:
ValueLayout.OfDouble
?
,
offest
:
Long
,
newValue
:
Double
)
fun
set
(
layout
:
ValueLayout.OfFloat
?
,
offest
:
Long
,
newValue
:
Float
)
fun
set
(
layout
:
ValueLayout.OfInt
?
,
offest
:
Long
,
newValue
:
Int
)
fun
set
(
layout
:
ValueLayout.OfLong
?
,
offest
:
Long
,
newValue
:
Long
)
fun
set
(
layout
:
ValueLayout.OfShort
?
,
offest
:
Long
,
newValue
:
Short
)
fun
set
(
layout
:
AddressLayout
?
,
offest
:
Long
,
newValue
:
MemorySegment
)
set
At
Index
Link copied to clipboard
android
fun
setAtIndex
(
layout
:
ValueLayout.OfInt
,
offest
:
Long
,
value
:
Int
)