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
ec0d6f83
Kaydet (Commit)
ec0d6f83
authored
Haz 07, 2006
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clarify documentation for bf_getcharbuffer.
üst
861acee0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
newtypes.tex
Doc/api/newtypes.tex
+10
-6
No files found.
Doc/api/newtypes.tex
Dosyayı görüntüle @
ec0d6f83
...
...
@@ -1549,7 +1549,9 @@ to be able to test for its presence before using it.}
Before using this slot, the caller should test whether it is present
by using the
\cfunction
{
PyType
_
HasFeature()
}
\ttindex
{
PyType
_
HasFeature()
}
function. If present, it may be
\NULL
, indicating that the object's
function. If the flag is present,
\member
{
bf
_
getcharbuffer
}
may be
\NULL
,
indicating that the object's
contents cannot be used as
\emph
{
8-bit characters
}
.
The slot function may also raise an error if the object's contents
cannot be interpreted as 8-bit characters. For example, if the
...
...
@@ -1574,12 +1576,13 @@ to be able to test for its presence before using it.}
\begin{ctypedesc}
[getreadbufferproc]
{
Py
_
ssize
_
t (*readbufferproc)
(PyObject *self, Py
_
ssize
_
t segment, void **ptrptr)
}
Return a pointer to a readable segment of the buffer. This function
Return a pointer to a readable segment of the buffer in
\code
{
*
\var
{
ptrptr
}}
. This function
is allowed to raise an exception, in which case it must return
\code
{
-1
}
. The
\var
{
segment
}
which is
pass
ed must be zero or
\code
{
-1
}
. The
\var
{
segment
}
which is
specifi
ed must be zero or
positive, and strictly less than the number of segments returned by
the
\member
{
bf
_
getsegcount
}
slot function. On success, it returns
the length of the
buffer memory
, and sets
\code
{
*
\var
{
ptrptr
}}
to a
the length of the
segment
, and sets
\code
{
*
\var
{
ptrptr
}}
to a
pointer to that memory.
\end{ctypedesc}
...
...
@@ -1608,8 +1611,9 @@ to be able to test for its presence before using it.}
\begin{ctypedesc}
[getcharbufferproc]
{
Py
_
ssize
_
t (*charbufferproc)
(PyObject *self, Py
_
ssize
_
t segment, const char **ptrptr)
}
Return the size of the memory buffer in
\var
{
ptrptr
}
for segment
\var
{
segment
}
.
\code
{
*
\var
{
ptrptr
}}
is set to the memory buffer.
Return the size of the segment
\var
{
segment
}
that
\var
{
ptrptr
}
is set to.
\code
{
*
\var
{
ptrptr
}}
is set to the memory buffer.
Returns
\code
{
-1
}
on error.
\end{ctypedesc}
...
...
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