Skip to content

Array type object

Philippe Proulx edited this page Sep 10, 2020 · 3 revisions

A CTF array or sequence (variable-length array) type.

See also: Type object.

Properties

Property Type Description Required? Default value
class String Set to array Required N/A
element-type Type object or string (alias name) Type of array type's elements Required N/A
length Positive integer (static array) or the string dynamic (dynamic array) Array type's length specification Required N/A

If the length property is the string dynamic, the array type has a variable length (CTF sequence).

Examples

16 bytes, static array:

class: array
length: 16
element-type:
  class: int
  size: 8

Dynamic array of null-terminated strings:

class: array
length: dynamic
element-type:
  class: string

Clone this wiki locally