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: &_) -> _
  • value: Must contain at most 2**24 - 1 bytes.
fn tl_encode_bytes(value: &Bound<'_, PyAny>) -> PyResult<Vec<u8>>

Defined in rust/miniproto/src/tl.rs:673-675

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.