msrtc-rans-python 0.2.3

Python extension module for msrtc_rans (published as wheel, not crate)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.

from enum import IntEnum


class RansVariant(IntEnum):
    """
    rANS variant enumeration.

    Maps to the C++ enum used in msrtc_rans:
        Rans64 = 0  (64-bit state, 32-bit units)
        RansByte = 1 (32-bit state, 8-bit units)
    """

    Rans64 = 0
    RansByte = 1