utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
560 stars 38 forks source link

enh: Simplify cpp core type buffer protocol read and write #630

Closed piiertho closed 1 month ago

piiertho commented 1 month ago

This simplify cpp read and write buffer protocol for core types.
This reinterprets byte buffer to core type to avoid multiple calls to get each primitives.
This needs test on all platforms to be sure we don't have memory layout troubles, even if we shouldn't as all core types are perfectly aligned.

CedNaru commented 1 month ago

Test on Android

piiertho commented 1 month ago

Tested on iOS