# gtv.from_bytes_or_null · Rell standard library · Chromia Docs (concept)

> pure static function from_ bytes_ or_ null(bytes: byte_array ): gtv ? Decode a GTV from a byte array. Parameters bytes — the byte array to decode Returns t

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/gtv/from_bytes_or_null/

FUNCTION

# gtv.from\_bytes\_or\_null

```signature
pure static function from_bytes_or_null(bytes: byte_array): gtv?
```

Decode a GTV from a byte array.

**Parameters**

* **bytes** — the byte array to decode

**Returns**

the decoded GTV, or `null` if the byte array does not encode a well-formed GTV; i.e. if a
GTV cannot be decoded

Since 0.13.0

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/gtv/from_bytes_or_null.html)Generated API reference, mirrored from the live docs
