Gjsify LogoGjsify Logo

Represents a unique ID of any object.

record

Hierarchy

  • OId

Index

Constructors

Properties

name: string

Methods

  • compare(b: OId): number
  • Compare two #GgitOId structures.

    Parameters

    • b: OId

      second #GgitOId.

    Returns number

  • equal(b: OId): boolean
  • Compares two #GgitOId for equality.

    Parameters

    • b: OId

      a #GgitOId.

    Returns boolean

  • free(): void
  • hasPrefix(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
  • Computes a hash value for a git object identifier.

    Returns number

  • isZero(): boolean
  • toString(): string
  • newFromRaw(raw: Uint8Array): OId
  • Creates a new #GgitOId from a raw oid.

    Parameters

    • raw: Uint8Array

      the raw input bytes to be copied.

    Returns OId

  • newFromString(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