mcap/modules/Shared_Memory_Channel/examples/common.jai

12 lines
366 B
Plaintext

// The two example programs here, 'read' and 'write', work in concert.
// Compile those. This file is just here to supply settings to those programs.
NUMBER_OF_MESSAGES :: 10000;
HEADER_SIZE :: 2; // 1 byte for message-or-done, 1 byte for the checksum.
Protocol_Tag :: enum u8 { // Is there a message here, or are we done?
DONE :: 0;
MESSAGE :: 1;
}