Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a reference to an IDL type, used for defining recursive data types.

Type parameters

  • T = any

Hierarchy

Index

Constructors

constructor

Properties

Private _id

_id: number = ...

Private _type

_type: undefined | ConstructType<T> = ...

Static Private _counter

_counter: number = 0

Accessors

name

  • get name(): string
  • Returns string

Methods

_buildTypeTableImpl

  • _buildTypeTableImpl(typeTable: TypeTable): void

accept

  • accept<D, R>(v: Visitor<D, R>, d: D): R

buildTypeTable

  • buildTypeTable(typeTable: TypeTable): void

checkType

covariant

  • covariant(x: any): x is T
  • Assert that JavaScript's x is the proper type represented by this Type.

    Parameters

    • x: any

    Returns x is T

decodeValue

  • decodeValue(b: Pipe, t: Type<any>): T

display

  • display(): string

encodeType

  • encodeType(typeTable: TypeTable): Buffer
  • Implement I in the IDL spec. Encode this type for the type table.

    Parameters

    • typeTable: TypeTable

    Returns Buffer

encodeValue

  • encodeValue(x: T): Buffer
  • Encode the value. This needs to be public because it is used by encodeValue() from different types.

    Parameters

    • x: T

    Returns Buffer

fill

  • Parameters

    Returns void

getType

  • Returns undefined | ConstructType<T>

valueToString

  • valueToString(x: T): string

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Class
  • Class with type parameter
  • Method
  • Interface
  • Interface with type parameter
  • Enumeration
  • Inherited method
  • Private property