Commit 776466e
authored
## What's Changed
Update the `BufferAllocator.buffer(long)` and
`BufferAllocator.buffer(long, BufferManager)` docstrings so they match
the actual behavior: the returned buffer’s capacity is the allocated
(possibly rounded) size, not the requested size. The previous text said
the capacity would be set to the configured size, which was incorrect.
The new text also mentions that callers can use
`ArrowBuf#capacity(long)` to set the capacity to the requested size when
needed.
Documentation-only change; no code or behavioral changes.
Closes #141.
1 parent b3113ab commit 776466e
2 files changed
Lines changed: 9 additions & 7 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
0 commit comments