Skip to content

miniproto_native::tl::tl_encode_bytes

  • Crate: miniproto_native
  • Rust visibility: restricted
  • Source: rust/miniproto/src/tl.rs
  • Python exposure: miniproto._native.tl_encode_bytes (confirmed from adjacent PyO3 attributes)
fn tl_encode_bytes(value: &[u8]) -> _
  • value: Bytes to prefix and pad according to TL rules.
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.

  • value: Bytes to prefix and pad according to TL rules.