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
4e15945f
Kaydet (Commit)
4e15945f
authored
Agu 11, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Markup errors: \cfuntion -> \cfunction
üst
7d45d34e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ext.tex
Doc/ext/ext.tex
+3
-3
No files found.
Doc/ext/ext.tex
Dosyayı görüntüle @
4e15945f
...
@@ -731,7 +731,7 @@ pointer to an integer (\var{*buffer_length}, the buffer length).
...
@@ -731,7 +731,7 @@ pointer to an integer (\var{*buffer_length}, the buffer length).
The encoding name must map to a registered codec. If set to
\NULL
{}
,
The encoding name must map to a registered codec. If set to
\NULL
{}
,
the default encoding is used.
the default encoding is used.
\cfuntion
{
PyArg
_
ParseTuple()
}
will allocate a buffer of the needed
\cfun
c
tion
{
PyArg
_
ParseTuple()
}
will allocate a buffer of the needed
size using
\cfunction
{
PyMem
_
NEW()
}
, copy the encoded data into this
size using
\cfunction
{
PyMem
_
NEW()
}
, copy the encoded data into this
buffer and adjust
\var
{
*buffer
}
to reference the newly allocated
buffer and adjust
\var
{
*buffer
}
to reference the newly allocated
storage. The caller is responsible for calling
storage. The caller is responsible for calling
...
@@ -753,14 +753,14 @@ the default encoding is used.
...
@@ -753,14 +753,14 @@ the default encoding is used.
There are two modes of operation:
There are two modes of operation:
If
\var
{
*buffer
}
points a
\NULL
{}
pointer,
If
\var
{
*buffer
}
points a
\NULL
{}
pointer,
\cfuntion
{
PyArg
_
ParseTuple()
}
will allocate a buffer of the needed
\cfun
c
tion
{
PyArg
_
ParseTuple()
}
will allocate a buffer of the needed
size using
\cfunction
{
PyMem
_
NEW()
}
, copy the encoded data into this
size using
\cfunction
{
PyMem
_
NEW()
}
, copy the encoded data into this
buffer and adjust
\var
{
*buffer
}
to reference the newly allocated
buffer and adjust
\var
{
*buffer
}
to reference the newly allocated
storage. The caller is responsible for calling
storage. The caller is responsible for calling
\cfunction
{
PyMem
_
Free()
}
to free the allocated buffer after usage.
\cfunction
{
PyMem
_
Free()
}
to free the allocated buffer after usage.
If
\var
{
*buffer
}
points to a non-
\NULL
{}
pointer (an already allocated
If
\var
{
*buffer
}
points to a non-
\NULL
{}
pointer (an already allocated
buffer),
\cfuntion
{
PyArg
_
ParseTuple()
}
will use this location as
buffer),
\cfun
c
tion
{
PyArg
_
ParseTuple()
}
will use this location as
buffer and interpret
\var
{
*buffer
_
length
}
as buffer size. It will then
buffer and interpret
\var
{
*buffer
_
length
}
as buffer size. It will then
copy the encoded data into the buffer and 0-terminate it. Buffer
copy the encoded data into the buffer and 0-terminate it. Buffer
overflow is signalled with an exception.
overflow is signalled with an exception.
...
...
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