Get String From Buffer Method
The Get String From Buffer method returns a string that starts at the current cursor position in a buffer and continues for the number of bytes that you specify in the length argument. It reads the string according to the value of the unicode flag of the buffer. It does not add a terminating null byte even if you do not provide a length argument.
Format
bufferVar.getString( [length] )
The following table describes the arguments for the Get String From Buffer method.
Argument | Description |
---|---|
length |
The length of the string to return, in bytes. If you do not specify the length argument, then this method reads the data until it encounters one of the following items:
|