""" Java java.nio.ByteOrder - BIG_ENDIAN, LITTLE_ENDIAN """ from __future__ import annotations from .._core import Stub import sys as _sys __all__ = ["ByteOrder"] class ByteOrder(Stub): """java.nio.ByteOrder""" def __init__(self, name): super().__init__() self._name = name @staticmethod def nativeOrder(): if _sys.byteorder == "little": return ByteOrder.LITTLE_ENDIAN return ByteOrder.BIG_ENDIAN def toString(self): return self._name BIG_ENDIAN = None LITTLE_ENDIAN = None ByteOrder.BIG_ENDIAN = ByteOrder("BIG_ENDIAN") ByteOrder.LITTLE_ENDIAN = ByteOrder("LITTLE_ENDIAN")