Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
94ead57d
Kaydet (Commit)
94ead57d
authored
Kas 09, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added version annotations, remove hard tabs.
üst
9f64caaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
abstract.tex
Doc/api/abstract.tex
+11
-7
No files found.
Doc/api/abstract.tex
Dosyayı görüntüle @
94ead57d
...
@@ -868,42 +868,46 @@ else {
...
@@ -868,42 +868,46 @@ else {
/* continue doing useful work */
/* continue doing useful work */
}
}
\section
{
Buffer Protocol
\label
{
buffer
}}
\section
{
Buffer Protocol
\label
{
abstract-
buffer
}}
\begin{cfuncdesc}
{
int
}{
PyObject
_
AsCharBuffer
}{
PyObject *obj,
\begin{cfuncdesc}
{
int
}{
PyObject
_
AsCharBuffer
}{
PyObject *obj,
const char **buffer,
const char **buffer,
int *buffer
_
len
}
int *buffer
_
len
}
Returns a pointer to a read-only memory location useable as character-
Returns a pointer to a read-only memory location useable as character-
based input. The
\var
{
obj
}
argument must support the single-segment
based input. The
\var
{
obj
}
argument must support the single-segment
character buffer interface. On success, returns
\code
{
1
}
, sets
character buffer interface. On success, returns
\code
{
1
}
, sets
\var
{
buffer
}
to the memory location and
\var
{
buffer
}
to the buffer
\var
{
buffer
}
to the memory location and
\var
{
buffer
}
to the buffer
length. Returns
\code
{
0
}
and sets a
\exception
{
TypeError
}
on error.
length. Returns
\code
{
0
}
and sets a
\exception
{
TypeError
}
on error.
\versionadded
{
1.6
}
\end{cfuncdesc}
\end{cfuncdesc}
\begin{cfuncdesc}
{
int
}{
PyObject
_
AsReadBuffer
}{
PyObject *obj,
\begin{cfuncdesc}
{
int
}{
PyObject
_
AsReadBuffer
}{
PyObject *obj,
const char **buffer,
const char **buffer,
int *buffer
_
len
}
int *buffer
_
len
}
Returns a pointer to a read-only memory location containing
Returns a pointer to a read-only memory location containing
arbitrary data. The
\var
{
obj
}
argument must support the
arbitrary data. The
\var
{
obj
}
argument must support the
single-segment readable buffer interface. On success, returns
single-segment readable buffer interface. On success, returns
\code
{
1
}
, sets
\var
{
buffer
}
to the memory location and
\var
{
buffer
}
\code
{
1
}
, sets
\var
{
buffer
}
to the memory location and
\var
{
buffer
}
to the buffer length. Returns
\code
{
0
}
and sets a
to the buffer length. Returns
\code
{
0
}
and sets a
\exception
{
TypeError
}
on error.
\exception
{
TypeError
}
on error.
\versionadded
{
1.6
}
\end{cfuncdesc}
\end{cfuncdesc}
\begin{cfuncdesc}
{
int
}{
PyObject
_
CheckReadBuffer
}{
PyObject *o
}
\begin{cfuncdesc}
{
int
}{
PyObject
_
CheckReadBuffer
}{
PyObject *o
}
Returns
\code
{
1
}
if
\var
{
o
}
supports the single-segment readable
Returns
\code
{
1
}
if
\var
{
o
}
supports the single-segment readable
buffer interface. Otherwise returns
\code
{
0
}
.
buffer interface. Otherwise returns
\code
{
0
}
.
\versionadded
{
2.2
}
\enc
{
cfuncdesc
}
\enc
{
cfuncdesc
}
\begin{cfuncdesc}
{
int
}{
PyObject
_
AsWriteBuffer
}{
PyObject *obj,
\begin{cfuncdesc}
{
int
}{
PyObject
_
AsWriteBuffer
}{
PyObject *obj,
const char **buffer,
const char **buffer,
int *buffer
_
len
}
int *buffer
_
len
}
Returns a pointer to a writeable memory location. The
\var
{
obj
}
Returns a pointer to a writeable memory location. The
\var
{
obj
}
argument must support the single-segment, character buffer
argument must support the single-segment, character buffer
interface. On success, returns
\code
{
1
}
, sets
\var
{
buffer
}
to the
interface. On success, returns
\code
{
1
}
, sets
\var
{
buffer
}
to the
memory location and
\var
{
buffer
}
to the buffer length. Returns
memory location and
\var
{
buffer
}
to the buffer length. Returns
\code
{
0
}
and sets a
\exception
{
TypeError
}
on error.
\code
{
0
}
and sets a
\exception
{
TypeError
}
on error.
\versionadded
{
1.6
}
\end{cfuncdesc}
\end{cfuncdesc}
\end{verbatim}
\end{verbatim}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment