You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A typical usecase for this is that when using multi sbe generated crates in a single bin crate to decode bytes. Each sbe crate may contain multi message types. So a general pattern to decode bytes was:
let frame_container = ...;
let msg_schema = frame_container.message_schema();
match msg_schema {
crate_a::SBE_SCHEMA_ID => {
// use crate_a specific ReadBuf and HeaderDecoder and ...
}
crate_b::SBE_SCHEMA_ID => {
// use crate_b specific ReadBuf and HeaderDecoder and ...
}
_ => {}
}