---
title: ByteOrderExpression type | Wartiva GraphQL API
description: Convert values between network byte order (big-endian) and host byte order for correct comparisons and storage.
url: https://wartiva.com/api-docs/types/byte-order-expression.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `ByteOrderExpression` type

Convert values between network byte order (big-endian) and host byte order for correct comparisons and storage.

## Fields

| Field Name | Description |
|---|---|
| `sourceRegister` - [`NftRegister!`](https://wartiva.com/api-docs/types/nft-register.html) | Source register for the byte order operation. |
| `destRegister` - [`NftRegister!`](https://wartiva.com/api-docs/types/nft-register.html) | Destination register for the byte order operation. |
| `op` - [`ByteOrderOperation!`](https://wartiva.com/api-docs/types/byte-order-operation.html) | The byte order operation to perform. |
| `len` - [`Uint32!`](https://wartiva.com/api-docs/types/uint32.html) | Length of the data to operate on in bytes. |
| `size` - [`Uint32!`](https://wartiva.com/api-docs/types/uint32.html) | Size of the data to operate on in bytes. |

## Used by

- [`ChainExpression`](https://wartiva.com/api-docs/types/chain-expression.html) union: A union of all possible nftables chain expression types.

## Example

### Example

```json
{
  "sourceRegister": "VERDICT",
  "destRegister": "VERDICT",
  "op": "NETWORK_TO_HOST",
  "len": "1073741824",
  "size": "1073741824"
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
