- android/ 167个模块 (app/content/os/view/widget/graphics/media/hardware/net/telephony/provider等) - java/ 35个模块 (lang/io/util/net/nio/security/crypto/sql/beans/rmi/awt等) - javax/ 4个模块 (net/crypto/security/sql) - org/ 5个模块 (json/w3c_dom/xml_sax/xml_pull/apache_http) - dalvik/ 1个模块 (system) - ~3053个类/接口,方法签名完全对齐Android SDK - 桌面跨平台运行 (Windows/macOS/Linux) - 修复所有导入错误和Python关键字冲突
33 lines
663 B
Python
33 lines
663 B
Python
"""
|
|
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") |