Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8be2296

Browse files
committed
Document new builtin buffer(). Greg Stein.
1 parent 36561c5 commit 8be2296

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Doc/lib/libfuncs.tex

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ \section{Built-in Functions \label{built-in-funcs}}
8181
be added to the end of the the argument list.
8282
\end{funcdesc}
8383

84+
\begin{funcdesc}{buffer}{object\optional{, offset\optional{, size}}}
85+
The \var{object} argument must be an object that supports the
86+
buffer call interface (such as strings, arrays, and buffers). A new
87+
buffer object will be created which references the \var{object} argument.
88+
The buffer object will be a slice from the beginning of \var{object}
89+
(or from the specified \var{offset}). The slice will extend to the
90+
end of \var{object} (or will have a length given by the \var{size}
91+
argument).
92+
\end{funcdesc}
93+
8494
\begin{funcdesc}{callable}{object}
8595
Return true if the \var{object} argument appears callable, false if
8696
not. If this returns true, it is still possible that a call fails,

0 commit comments

Comments
 (0)