Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents an IDL Record

param

mapping of function name to Type

Hierarchy

Index

Constructors

constructor

Properties

Protected Readonly _fields

_fields: [string, Type<any>][]

Accessors

name

  • get name(): string
  • Returns string

Methods

_buildTypeTableImpl

  • _buildTypeTableImpl(T: 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 Record<string, any>
  • Assert that JavaScript's x is the proper type represented by this Type.

    Parameters

    • x: any

    Returns x is Record<string, any>

decodeValue

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

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: Record<string, any>): Buffer
  • Encode the value. This needs to be public because it is used by encodeValue() from different types.

    Parameters

    • x: Record<string, any>

    Returns Buffer

tryAsTuple

  • tryAsTuple(): null | Type<any>[]
  • Returns null | Type<any>[]

valueToString

  • valueToString(x: Record<string, any>): string

Legend

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