Generic Function | Package: excl | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version

## mapped-file-simple-stream-buffer

Arguments: stream

Returns the buffer that has been established by the opening of the stream, which must be a subclass of `mapped-file-simple-stream`. This buffer will always be an aligned pointer. It is a reader only, and is thus not setf'able.

### Example

This example uses sys:memref.

    ;; We have a file named xxx which contains a single line of text:
    ;;
    cl-user(1): (shell "cat xxx")
    abcdefgxxxxxxxxx
    0
    cl-user(2): (setq xxx (open "xxx" :mapped t))
    #<mapped-file-simple-stream #P"xxx" mapped for input pos 0 @
      #x10003b83772>
    cl-user(3): (setq buf (mapped-file-simple-stream-buffer xxx))
    17461927465472
    cl-user(4): (code-char (sys:memref buf 0 0 :unsigned-byte))
    #\a
    cl-user(5): (code-char (sys:memref buf 0 3 :unsigned-byte))
    #\d
    cl-user(6): (code-char (sys:memref buf 0 10 :unsigned-byte))
    #\x
    cl-user(7):

Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version