APIs

Show:

Constructor

Company

(
  • options
)

Parameters:

  • options Object
    • [name] String optional
    • [employees] Employee[] optional
    • [company_values] String optional

Methods

binaryStoreSize

() Number

Calculate the required size to store this object in a binary stream.

Returns:

Number:

check_options_correctness_against_schema

()

check correctness of option fields against scheme

check_schema_correctness

(
  • schema
)

ensure correctness of a schema object.

Parameters:

  • schema Object

decode

(
  • stream
  • [option]
)

decode the object from a binary stream

Parameters:

encode

(
  • stream
)

encode the object into a binary stream

Parameters:

extract_all_fields

()

extract a list of all possible fields for a schema (by walking up the inheritance chain)

get_base_schema

(
  • schema
)

Parameters:

  • schema Object

Returns:

:

initialize_field

(
  • field
  • value
)

Parameters:

  • field Object
  • value Object

Returns:

:

initialize_field_array

(
  • field
  • valueArray
)
Array

Parameters:

  • field Object
  • valueArray Object

Returns:

Array:

isValid

() Boolean

verify that all object attributes values are valid according to schema

Returns:

Boolean:

toString

() String

Returns:

String: