make_buffer

Gamma: Version 4.0
Prev |  | Next

# `make_buffer`

`make_buffer` -- creates a new, empty buffer.

## Syntax

    make_buffer (n_elements)

## Arguments

`n_elements`

  The number of elements (bytes) in the buffer.

## Returns

A new buffer.

## Description

This function creates a new, empty buffer with `n_elements` number of bytes, all set to zero.

## Example

        Gamma> make_buffer(5);
        #{\0\0\0\0\0}
        Gamma> make_buffer(12);
        #{\0\0\0\0\0\0\0\0\0\0\0\0}
        Gamma>

## See Also

`buffer`, `buffer_to_string`

Prev | Home | Next
`format` | Up | `open_string`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.