Skip to content

Commit 432a0e1

Browse files
committed
PointerBuffer.adr
1 parent 6a29ec8 commit 432a0e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/glm_/buffer/buffer.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ inline val Buffer.adr: Pointer
3939
else -> throw Error("unsupported buffer type")
4040
}
4141

42+
inline val PointerBuffer.adr: Pointer
43+
get() = MemoryUtil.memAddress(this)
44+
45+
4246
inline var Buffer.pos: Int
4347
get() = position()
4448
set(value) {

0 commit comments

Comments
 (0)