Gjsify LogoGjsify Logo

Represents a unique ID of any object.

record

Hierarchy

  • OId

Index

Constructors

Properties

name: string

Methods

  • compare(b: OId): number
  • equal(b: OId): boolean
  • free(): void
  • has_prefix(prefix: string): boolean
  • Check whether the object id has a given prefix. Note that the prefix is specified in hexadecimal ASCII.

    Parameters

    • prefix: string

      a prefix.

    Returns boolean

  • hash(): number
  • is_zero(): boolean
  • to_string(): string
  • new_from_raw(raw: Uint8Array): OId
  • new_from_string(str: string): OId
  • Parses a hex formatted object id into a #GgitOId.

    Parameters

    • str: string

      input hex string; must be pointing at the start of the hex sequence and have at least the number of bytes needed for an oid encoded in hex (40 bytes).

    Returns OId

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