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:310–314 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
308
309
# ARROW-421
310
def
get_buffer():
311
data = b
'some sample data'
* 1000
312
reader = pa.BufferReader(data)
313
reader.seek(5)
314
return
reader.read_buffer(6)
315
316
buf = get_buffer()
317
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