Gjsify LogoGjsify Logo

Represents the line of a diff.

record

Hierarchy

  • DiffLine

Index

Constructors

Properties

name: string

Methods

  • getContent(): Uint8Array
  • getContentOffset(): number
  • getNewLineno(): number
  • Gets the Line number in new file or -1 for deleted line.

    Returns number

  • getOldLineno(): number
  • Gets the line number in old file or -1 for added line.

    Returns number

  • getText(): string
  • Get the content of the diff line as UTF-8 encoded text.

    Returns string

  • Atomically increments the reference count of line by one. This function is MT-safe and may be called from any thread.

    Returns DiffLine

  • unref(): void
  • Atomically decrements the reference count of line by one. If the reference count drops to 0, line is freed.

    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