N Code Data Types
Home ] Up ] N Code Execution Model ] N Code Language ] [ N Code Data Types ] N Code Expressions ] N Code Statements ] N Code Variables and Scoping Rules ] N Code Filters ] N Code Function Definition ] N Code Tools ] N Code Triggers ]


N Code Data Types

Specific types exist added for a variety of reasons. Type is retained when the data associated with the type is passed to a recorder, so adding a new type may make it easier for recorders to process the data received from the engine. Types provide different semantics inside the engine, and can ease programming. For example, lists can contain a collection of any types. If a list is compared to and integer, then the comparison succeeds if that integer matches just one integer in the list. 

The engine currently supports the following data types:

  • blob - a group of octets
  • ethmac - ethernet MAC address.  Six octets of address information
  • error - describes errors that happened during evaluation
  • int - int32.  Allows basic arithmethic.  No triggers for arithmetic overflow.
  • ipv4Host - a host in IP Version 4 format
  • ipv4Net - a network range in IP Version 4 format
  • list - a collection of other types
  • pattern - a pattern match for strings
  • recorder- a target of the RECORD statement
  • string - as in C.  null terminated.

In addition, the engine supports several internal types that do not normally appear in any evaluation:

  • indirect - a type that references another type
  • map - a named collection of symbols
  • mapbag - a hashed collection of maps
  • schemaData - a set of data destined for a recorder

Back ] Home ] Up ] Next ]