X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/0683223aa93d14e4b1d0620010392c518a3a6392..d4efbcd93c940ad522fcf8c601ec1829d2e0b10d:/man/buf.3 diff --git a/man/buf.3 b/man/buf.3 index 64eba27..76c7dcb 100644 --- a/man/buf.3 +++ b/man/buf.3 @@ -205,7 +205,7 @@ The position in the buffer at which the next read or write will occur. A buffer is created using the .B buf_init function. You must pass it the buffer base address and size, and a -pointer to a +pointer to a .B buf structure to fill in. It doesn't allocate any memory, so you don't need to dispose of the @@ -239,7 +239,7 @@ The size of the buffer; i.e., .TP .B BLEN The length of data in the buffer (if writing) or the amount of data -read (if reading); i.e., +read (if reading); i.e., .I current \- .IR base . @@ -255,13 +255,13 @@ The function .B buf_flip takes a buffer which has been used for writing, and makes it suitable for reading. This turns out to be useful when building packets in -multi-layered networking software. Its precise behaviour is to preserve +multi-layered networking software. Its precise behaviour is to preserve .IR base , to set .I limit to .IR current , -and to set +and to set .I current to .IR base . @@ -313,7 +313,7 @@ or more bytes remaining, it steps the buffer's .I current pointer by .I sz -and returns the +and returns the .I original (pre-stepping) .I current @@ -322,7 +322,7 @@ pointer. .PP The .B buf_put -function writes +function writes .I sz bytes of data starting at .I p