Skip to content

SBE Code Generator #47

@Scriptize

Description

@Scriptize

Simple Binary Encoding is FIX semantics in a Binary Format:

Here is CME's documentation on SBE with an example

The code generator will be a rust script that does file i/o to transform some XML template into rust code that can encode and decode SBE serialized messages to be sent and recieved over tcp streams

Example:

The script might turn this:

<message name="Order" id="1" blockLength="24">
  <field name="OrderID" type="u64" offset="0"/>
  <field name="Side" type="u8" offset="8"/>
</message>

Into this:

pub struct Order {
    pub order_id: u64,
    pub side: u8,
}

impl Order {
    pub fn encode(&self) -> Vec<u8> { ... }
    pub fn decode(buf: &[u8]) -> Self { ... }
}

Sub-issues

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions