Measure bytes.Buffer size by length instead of capacity

This commit is contained in:
Feoramund
2024-08-19 04:03:40 -04:00
committed by Laytan
parent 7c6cc81041
commit e83b982afe

View File

@@ -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)