examples: net_sync's raw buffer inside unsafe, now that a query's body is checked

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-25 14:43:23 +03:00
parent 253d8d3632
commit 4919c9c2fc

View file

@ -21,6 +21,7 @@ program NetSync {
entry { entry {
spawn Player { Position { x: 3, y: 4 }, Health { hp: 50, max: 100 } } spawn Player { Position { x: 3, y: 4 }, Health { hp: 50, max: 100 } }
unsafe { # a raw snapshot buffer on purpose: built with --unsafe (L7)
for (Position, Health) in query [Position, Health, {Player}] { for (Position, Health) in query [Position, Health, {Player}] {
let e = self() let e = self()
let buf = bytes(64) let buf = bytes(64)
@ -38,3 +39,4 @@ program NetSync {
} }
} }
} }
}