Gjsify LogoGjsify Logo

Hierarchy

  • Area

Index

Constructors

  • A VipsArea wraps a chunk of memory. It adds reference counting and a free function. It also keeps a count and a %GType, so the area can be an array.

    This type is used for things like passing an array of double or an array of #VipsObject pointers to operations, and for reference-counted immutable strings.

    Inital count == 1, so _unref() after attaching somewhere.

    See also: vips_area_unref().

    Parameters

    • free_fn: CallbackFn

      data will be freed with this function

    Returns Area

Properties

data: object
length: number
n: number
name: string

Methods

  • get_data(): [object, number, number, GType<unknown>, number]
  • Return the data pointer plus optionally the length in bytes of an area, the number of elements, the %GType of each element and the sizeof() each element.

    Returns [object, number, number, GType<unknown>, number]

  • unref(): void
  • free_cb(mem: object, area: Area): number
  • A VipsArea wraps a chunk of memory. It adds reference counting and a free function. It also keeps a count and a %GType, so the area can be an array.

    This type is used for things like passing an array of double or an array of #VipsObject pointers to operations, and for reference-counted immutable strings.

    Inital count == 1, so _unref() after attaching somewhere.

    See also: vips_area_unref().

    Parameters

    • free_fn: CallbackFn

      data will be freed with this function

    Returns Area

  • new_array(type: GType<unknown>, sizeof_type: number, n: number): Area
  • An area which holds an array of elements of some %GType. To set values for the elements, get the pointer and write.

    See also: vips_area_unref().

    Parameters

    • type: GType<unknown>

      %GType of elements to store

    • sizeof_type: number

      sizeof() an element in the array

    • n: number

      number of elements in the array

    Returns Area

  • new_array_object(n: number): Area
  • An area which holds an array of %GObject s. See vips_area_new_array(). When the area is freed, each %GObject will be unreffed.

    Add an extra NULL element at the end, handy for eg. vips_image_pipeline_array() etc.

    See also: vips_area_unref().

    Parameters

    • n: number

      number of elements in the array

    Returns Area

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method