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
bc9e5dcf
Kaydet (Commit)
bc9e5dcf
authored
Haz 08, 2007
tarafından
Thomas Heller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix wrong documentation, and correct the punktuation.
Closes [1700455]. Backported from trunk.
üst
897704d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libctypes.tex
Doc/lib/libctypes.tex
+2
-2
No files found.
Doc/lib/libctypes.tex
Dosyayı görüntüle @
bc9e5dcf
...
...
@@ -437,8 +437,8 @@ You should be careful, however, not to pass them to functions
expecting pointers to mutable memory. If you need mutable memory
blocks, ctypes has a
\code
{
create
{
\_
}
string
{
\_
}
buffer
}
function which creates
these in various ways. The current memory block contents can be
accessed (or changed) with the
\code
{
raw
}
property
,
if you want to access
it as NUL terminated string, use the
\code
{
string
}
property:
accessed (or changed) with the
\code
{
raw
}
property
;
if you want to access
it as NUL terminated string, use the
\code
{
value
}
property:
\begin{verbatim}
>>> from ctypes import *
>>> p = create
_
string
_
buffer(3) # create a 3 byte buffer, initialized to NUL bytes
...
...
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