Declaration
Compression :: enum u8 {
IDENTITY; GZIP;}Per-message compression uses the algorithm negotiated by grpc-encoding.
bytes, failure := frame_message(u8.[1, 2, 3], compression = .GZIP);
assert(failure == .NONE);
defer free(bytes.data);
assert(bytes[0] == 1); // the compressed flag of the envelope