MCPcopy Create free account
hub / github.com/ccxt/ccxt / ToInt

Method ToInt

python/ccxt/static_dependencies/bip/utils/misc/data_bytes.py:84–95  ·  view source on GitHub ↗

Get data bytes as an integer. Args: endianness ("big" or "little", optional): Endianness (default: big) Returns: int: Data bytes as an integer

(self,
              endianness: Literal["little", "big"] = "big")

Source from the content-addressed store, hash-verified

82 return BytesUtils.ToHexString(self.m_data_bytes)
83
84 def ToInt(self,
85 endianness: Literal["little", "big"] = "big") -> int:
86 """
87 Get data bytes as an integer.
88
89 Args:
90 endianness ("big" or "little", optional): Endianness (default: big)
91
92 Returns:
93 int: Data bytes as an integer
94 """
95 return BytesUtils.ToInteger(self.m_data_bytes, endianness)
96
97 def __len__(self) -> int:
98 """

Callers 1

__int__Method · 0.95

Calls 1

ToIntegerMethod · 0.80

Tested by

no test coverage detected