Chapter Contents |
Previous |
Next |
SAS/AF Software: Class Dictionary |
The Buffer class is provided to allow remote objects to send and receive serialized data. The buffer is implemented in C and is not directly accessible from SCL. The _init method of the Buffer class creates the buffer and puts the pointer to the buffer into a list item of pointer type on the BUFFER attribute. The Input Buffer and Output Buffer subclasses are provided to allow access to the buffer from SCL. Numeric types that are written to the buffer are written as a particular number of bytes containing the numeric data, either in integer or floating point format. Single characters and character strings are treated the same way when written to the buffer. Two bytes containing the length of the string (as an integer value) are written to the buffer followed by the characters of the string. Lists are written to the buffer using a special list format. Since there are no type specifiers for items placed in the buffer, it is up to the writer and reader of the buffer to coordinate what is being written and read. Reading an item with a different type than the type of the item that was written can cause unpredictable results.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.