Module cocos.audio.SDL.array

Classes

  SDL_array

Functions

object, ctypes.Array to_ctypes(values, count, ctype)
Create a ctypes array of the given count and type, with the contents of sequence values.

Variables

  __package__ = 'cocos.audio.SDL'

Function Details

to_ctypes

to_ctypes(values, count, ctype)
Create a ctypes array of the given count and type, with the contents of sequence values.
Parameters:
values
: sequence of length count, or SDL_array instance, or ctypes.Array, or POINTER(ctypes.Array)
count
: int
ctype
: type
Returns:
object, ctypes.Array: (ref, array), where ref is an object that must be retained by the caller for as long as the array is used.