pub fn write_command_on_msg_buffer(
    ctx: &mut CommandContext,
    command_type: CommandType,
    data_size: u32
)