Skip to content

miniproto_native::tl::tl_encode_bytes

  • 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: Must contain at most 2**24 - 1 bytes. This function does not check the limit.
fn tl_encode_bytes(value: &[u8]) -> Vec<u8>

Defined in rust/miniproto/src/tl.rs:640-642

Encodes Python tl_encode_bytes(value) with TL’s short/long length prefix and zero padding.

  • value: Must contain at most 2**24 - 1 bytes. This function does not check the limit.