Expand description
§msrtc-rans-python
Python extension module _msrtc_rans providing the msrtc.rans Python API.
This crate uses PyO3 to create a CPython extension module that is
import-path-compatible with the existing msrtc.rans package.
Stream classes wrap the persistent Rust stream types from
msrtc_rans::stream, matching Microsoft’s RansEncoderStream /
RansDecoderStream semantics:
RansEncoderStreamkeeps a single persistent raw rANS encoder state acrosspush()calls and flushes it once (Flush(abort=false)), exactly like Microsoft’sRansEncoderStreamImpl.RansDecoderStreamowns the encoded message and keeps a persistent decode cursor (unit position + rANS state) acrossdecode()calls, matching Microsoft’sRansDecoderStreamImpl.