http://zorba.io/modules/item

View as XML or JSON.

This module provides utility functions on items. For example, it provides a function that allows estimating the size in bytes that a given item allocates in memory.

Function Summary

size ($item as item()) as xs:integer external

Computes the size in bytes of the given item in main memory.

Functions

size#1

declare  function item:size($item as item()) as xs:integer external
Computes the size in bytes of the given item in main memory.

Parameters

item as item()
the item whose size to compute.

Returns

xs:integer
the size allocated by the item in bytes.