buffer

Gamma: Version 4.0
Prev |  | Next

# `buffer`

`buffer` -- constructs a buffer.

## Syntax

    buffer (contents?...)

## Arguments

`contents`

  Any Gamma or Lisp expression.

## Returns

A buffer containing all of the `contents`.

## Description

This function constructs a buffer of all of the arguments, in the order they are given.

| A buffer is printed as a sequence of characters (some consoles may not support a character for every entry) surrounded by curly brackets and preceded by a hash sign, such as: #{\n+6ALWbe}. This representation of a buffer cannot be read back in to Gamma, so a symbol must be assigned to a buffer in order to refer to or work with it.

## Example

        Gamma> bu = buffer (101, 102, 103, 104, 2 * 25, 4 / 82);
        #{efgh2\0}
        Gamma> shorten_buffer (bu, 2);
        #{ef}
        Gamma>

## See Also

`binsert`, `bdelete`

Prev | Home | Next
`binsert` | Up | `buffer_to_string`

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