Skip to content
HALOWERK

Depwerk

link section alignment layout

Return section addresses and padding for a supplied ordered object layout with power-of-two alignments.

POST https://dep.halowerk.com/v1/link-section-alignment-layout

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
startintegerYes
sectionsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "start": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1000000000000
    },
    "sections": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 64,
            "minLength": 1
          },
          "bytes": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000000
          },
          "alignment": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1048576
          }
        },
        "required": [
          "id",
          "bytes",
          "alignment"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "minItems": 1
    }
  },
  "required": [
    "start",
    "sections"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "start": 3,
  "sections": [
    {
      "id": ".text",
      "bytes": 5,
      "alignment": 4
    },
    {
      "id": ".data",
      "bytes": 2,
      "alignment": 8
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’