Gjsify LogoGjsify Logo

Hierarchy

  • Binary

Index

Constructors

Properties

binary_length: number

length of data

field
data: Uint8Array

the actual data as an array

field
name: string

Methods

  • to_string(maxlen: number): string
  • Converts all the non printable characters of bin->data into the "\xyz" representation where "xyz" is the octal representation of the byte, and the '' (backslash) character is converted to "\". Printable characters (defined by g_ascii_isprint()) as well as newline character are not converted.

    Note that the backslash and newline characters are considered as printable characters and will not be represented by the "\xyz" representation.

    Use this function to get a representation as much readable by humans as possible of a binary chunk. Note that this function is internally called when transforming a binary value to a string for example when using g_value_transform() or gda_value_stringify().

    Parameters

    • maxlen: number

      a maximum len used to truncate, or %0 for no maximum length

    Returns string

  • copy(boxed: object): object
  • Creates a new #GdaBinary structure from an existing one.

    Parameters

    • boxed: object

      source to get a copy from.

    Returns object

  • free(boxed: object): void
  • Deallocates all memory associated to the given #GdaBinary.

    Parameters

    • boxed: object

      #GdaBinary to free.

    Returns void

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