GDExtensionInterfaceFileAccessGetBuffer typedef

GDExtensionInterfaceFileAccessGetBuffer = Pointer<NativeFunction<GDExtensionInterfaceFileAccessGetBufferFunction>>

@name file_access_get_buffer @since 4.1

Reads the next p_length bytes into the given buffer using an instance of FileAccess.

@param p_instance A pointer to a FileAccess object. @param p_dst A pointer to the buffer to store the data. @param p_length The requested number of bytes to read.

@return The actual number of bytes read (may be less than requested).

Implementation

typedef GDExtensionInterfaceFileAccessGetBuffer =
    ffi.Pointer<
      ffi.NativeFunction<GDExtensionInterfaceFileAccessGetBufferFunction>
    >;