miniproto_native::tl::tl_encode_bytes
Provenance
Section titled “Provenance”- Crate:
miniproto_native - Rust visibility:
restricted - Source:
rust/miniproto/src/tl.rs - Python exposure:
miniproto._native.tl_encode_bytes(confirmed from adjacent PyO3 attributes)
Signature
Section titled “Signature”fn tl_encode_bytes(value: &[u8]) -> _Arguments
Section titled “Arguments”value: Bytes to prefix and pad according to TL rules.
cargo-docs-md rendering
Section titled “cargo-docs-md rendering”tl_encode_bytes
Section titled “tl_encode_bytes”fn tl_encode_bytes(value: &[u8]) -> Vec<u8>Defined in rust/miniproto/src/tl.rs:646-648
Encodes Python tl_encode_bytes(value) with TL’s short/long length prefix and zero padding.
Arguments
Section titled “Arguments”value: Bytes to prefix and pad according to TL rules.