summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libarray.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-14 19:50:37 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-14 19:50:37 (GMT)
commit8f06247b51924245ff1777bbf46aee9f38237c8e (patch)
tree3c1e9314d5255f9d17bc311f7f9588037308e1c8 /Doc/lib/libarray.tex
parent98046b90d02f6751efaf93946188fe572490b8be (diff)
downloadcpython-8f06247b51924245ff1777bbf46aee9f38237c8e.zip
cpython-8f06247b51924245ff1777bbf46aee9f38237c8e.tar.gz
cpython-8f06247b51924245ff1777bbf46aee9f38237c8e.tar.bz2
Added buffer_info() docs.
Diffstat (limited to 'Doc/lib/libarray.tex')
-rw-r--r--Doc/lib/libarray.tex10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/lib/libarray.tex b/Doc/lib/libarray.tex
index eb76251..145bb4f 100644
--- a/Doc/lib/libarray.tex
+++ b/Doc/lib/libarray.tex
@@ -60,6 +60,16 @@ The length in bytes of one array item in the internal representation.
Append a new item with value \var{x} to the end of the array.
\end{funcdesc}
+\begin{funcdesc}{buffer_info}{}
+Return a tuple \code{(\var{address}, var{length})} giving the current
+memory address and the length in bytes of the buffer used to hold
+array's contents. This is occasionally useful when working with
+low-level (and inherently unsafe) I/O interfaces that require memory
+addresses, such as certain \code{ioctl} operations. The returned
+numbers are valid as long as the array exists and no length-changing
+operations are applied to it.
+\end{funcdesc}
+
\begin{funcdesc}{byteswap}{x}
``Byteswap'' all items of the array. This is only supported for
integer values. It is useful when reading data from a file written