Skip to main content

encode

Function encode 

Source
pub fn encode(bytes: &[u8]) -> Result<Matrix>
Expand description

Upload raw bytes as a rank-one U8 Matrix on this thread’s default runtime.

§Errors

Returns an error when the default runtime cannot be initialized or when allocation or upload fails.