Skip to main content

encode_frame

Function encode_frame 

Source
pub fn encode_frame(stmt_id: i32, cmd: i16, opts: &[u8], body: &[u8]) -> Vec<u8> ⓘ
Expand description

组装完整帧:opts=参数区(20-63),body=帧数据区(64+)。