Gentee Programming Language > Documentation > Libraries Download documentation

buf.alloc

The method allocates memory of the specified size in the object. If there is any data in the buffer, it is destroyed.
 
buf buf.alloc(
      uint   size
)

Parameters

sizeThe size of memory space to be allocated.

Return value

Returns the object which method has been called.

See also

    Buffer - binary data


 Copyright © 2004-2006 Gentee Inc. All rights reserved.