2024-07-07 08:35:07 -05:00
|
|
|
stn := @use("../../../libraries/stn/src/lib.hb");
|
|
|
|
log := stn.log;
|
|
|
|
string := stn.string;
|
|
|
|
memory := stn.memory;
|
|
|
|
buffer := stn.buffer;
|
2024-07-06 09:24:23 -05:00
|
|
|
|
2024-07-07 08:35:07 -05:00
|
|
|
main := fn(): int {
|
|
|
|
// Create a buffer
|
|
|
|
buffer_id := buffer.create();
|
|
|
|
buffer.send_message(buffer_id);
|
2024-07-06 11:23:44 -05:00
|
|
|
|
2024-07-07 08:35:07 -05:00
|
|
|
memory_pages := memory.request_page(3);
|
|
|
|
buffer.receive_message(buffer_id, memory_pages, 4096*3);
|
2024-07-06 11:23:44 -05:00
|
|
|
|
2024-07-07 08:35:07 -05:00
|
|
|
log.info("abc\0");
|
2024-07-06 09:24:23 -05:00
|
|
|
|
2024-07-07 08:35:07 -05:00
|
|
|
memory.release_page(memory_pages, 3);
|
2024-07-06 09:24:23 -05:00
|
|
|
|
2024-05-31 10:07:22 -05:00
|
|
|
return 0;
|
|
|
|
}
|