Give an instance that owns its memory size bytes (at least the size of
its type), keeping its contents; the instance moves to new memory, so
pointers, byref() and views taken before keep referring to the old one.
Below the type size, or for an instance that views memory it does not own,
a RangeError; create_string_buffer() Buffers cannot be resized. A pointer
instance owns its memory unless it views a field, an element,
from_buffer() / from_address() memory or another pointer's contents.
Give an instance that owns its memory
sizebytes (at least the size of its type), keeping its contents; the instance moves to new memory, so pointers,byref()and views taken before keep referring to the old one. Below the type size, or for an instance that views memory it does not own, a RangeError;create_string_buffer()Buffers cannot be resized. A pointer instance owns its memory unless it views a field, an element,from_buffer()/from_address()memory or another pointer'scontents.Python equivalent:
ctypes.resize