Add doc/note/slices-arrays-and-tables.md

This commit is contained in:
Nigel Tao committed 2019-07-21 16:34:24 +10:00
1 parent 392c8c544a
commit 97c6ef5f50
3 files changed
+87 -3

No files matched your search

+4 -3
View File
@@ -16,9 +16,10 @@ decompressed bytes to a destination buffer.
## I/O Buffers
An `io_buffer` is a [slice](/doc/note/slices-and-tables.md) of bytes (the data,
a `ptr` and `len`) with additional fields (the metadata): a read index (`ri`),
a write index (`wi`), a position (`pos`) and whether or not it is `closed`.
An `io_buffer` is a [slice](/doc/note/slices-arrays-and-tables.md) of bytes
(the data, a `ptr` and `len`) with additional fields (the metadata): a read
index (`ri`), a write index (`wi`), a position (`pos`) and whether or not it is
`closed`.
## Read Index and Write Index