up: NAT16     index Zimbu documentation

CLASS NAT16.nat16 @public

summary

     

The builtin type nat16: 16 bit natural number.

Although this is a separate type, the methods for nat are used. Listed here are only the methods that differ from the nat methods.

NOTE: When compiled to Javascript a nat16 is stored as a float, since Javascript only supports float numbers.

$Size() int @public  Return the number of bytes in a nat16.
 
 

members (alphabetically)

     

FUNC $Size() int @public

     

Return the number of bytes in a nat16.

Always returns 2, since a nat16 is 16 bits

license

      Copyright 2014 Bram Moolenaar All Rights Reserved.

      Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0