Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ccxt/ccxt
/ string_to_binary
Method
string_to_binary
python/ccxt/base/exchange.py:1401–1402 ·
view source on GitHub ↗
(buff: str)
Source
from the content-addressed store, hash-verified
1399
1400
@staticmethod
1401
def
string_to_binary(buff: str) -> bytes:
1402
return
buff.encode(
'utf-8'
)
1403
1404
@staticmethod
1405
def
binary_to_string(buff: bytes) -> str:
Callers
1
test_binary_concat
Function · 0.95
Calls
1
encode
Method · 0.45
Tested by
1
test_binary_concat
Function · 0.76