- All Modules
- All Functions
-
www.w3.org
- 2005
- XDM
- store
- introspection
- reflection
- external
-
xqdoc
-
xqdoc
(E)
-
project_xqdoc
- xqdoc2xhtml
-
xqdoc
(E)
- data processing
- expath.org
- www.functx.com
- Zorba
- debugger
- error
- jsoniq.org
- www.zorba-xquery.com
http://www.zorba-xquery.com/modules/item
Module Description
Before using any of the functions below please remember to import the module namespace:
import module namespace item = "http://www.zorba-xquery.com/modules/item";
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.
Author:
Matthias Brantner
XQuery version and encoding for this module:
xquery version "1.0" encoding "utf-8";
Zorba version for this module:
The latest version of this module is 1.0. For more information about module versioning in Zorba please check out this resource.
Module Resources
- the XQuery module can be found here.
Namespaces
item | http://www.zorba-xquery.com/modules/item |
ver | http://www.zorba-xquery.com/options/versioning |
Function Summary
![]() |
size
(
$item as item()
) as xs:integer Computes the size in bytes of the given item in main memory. |
Functions
declare function item:size ( $item as item() ) as xs:integer
Computes the size in bytes of the given item in main memory.
Parameters:
- $item the item whose size to compute.
Returns:
- the size allocated by the item in bytes.