Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ get_buffer
Function
get_buffer
python/pyarrow/tests/test_io.py:311–315 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
309
310
# ARROW-421
311
def
get_buffer():
312
data = b
'some sample data'
* 1000
313
reader = pa.BufferReader(data)
314
reader.seek(5)
315
return
reader.read_buffer(6)
316
317
buf = get_buffer()
318
gc.collect()
Callers
1
test_bytes_reader_retains_parent_reference
Function · 0.85
Calls
3
BufferReader
Method · 0.80
seek
Method · 0.80
read_buffer
Method · 0.80
Tested by
no test coverage detected