aboutsummaryrefslogtreecommitdiff
path: root/core/bytes/buffer.odin
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-08-19 04:03:40 -0400
committerLaytan <laytanlaats@hotmail.com>2024-08-28 19:53:20 +0200
commite83b982afe103544112dea83e1befe1061f9ea93 (patch)
tree38763ca15f74cd64bc537eb31549f8626380c73a /core/bytes/buffer.odin
parent7c6cc8104112bd6e260355f4ba3566ffe0de8809 (diff)
Measure `bytes.Buffer` size by `length` instead of `capacity`
Diffstat (limited to 'core/bytes/buffer.odin')
-rw-r--r--core/bytes/buffer.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/bytes/buffer.odin b/core/bytes/buffer.odin
index 4208b0d46..0399beea4 100644
--- a/core/bytes/buffer.odin
+++ b/core/bytes/buffer.odin
@@ -419,7 +419,7 @@ _buffer_proc :: proc(stream_data: rawptr, mode: io.Stream_Mode, p: []byte, offse
n, err = buffer_seek(b, offset, whence)
return
case .Size:
- n = i64(buffer_capacity(b))
+ n = i64(buffer_length(b))
return
case .Destroy:
buffer_destroy(b)