Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/cassandra-python-driver
/ write_longstring
Function
write_longstring
cassandra/protocol.py:1372–1376 ·
view source on GitHub ↗
(f, s)
Source
from the content-addressed store, hash-verified
1370
1371
1372
def
write_longstring(f, s):
1373
if
isinstance(s, str):
1374
s = s.encode(
'utf8'
)
1375
write_int(f, len(s))
1376
f.write(s)
1377
1378
1379
def
read_stringlist(f):
Callers
6
test_write_read_longstring
Method · 0.90
send_body
Method · 0.85
_write_query_params
Method · 0.85
send_body
Method · 0.85
send_body
Method · 0.85
send_body
Method · 0.85
Calls
2
write_int
Function · 0.85
encode
Method · 0.45
Tested by
1
test_write_read_longstring
Method · 0.72