Topic Path: Symbol Reference > Classes > TIdBuffer Class > TIdBuffer Methods > PeekByte Method
ContentsIndexHome
PreviousUpNext
TIdBuffer.PeekByte Method

Gets a byte value without removing the value from the internal storage for the buffer.

function PeekByte(
    AIndex: Integer
): Byte;
Parameters 
Description 
AIndex 
Offset into the buffer storage to retreive. 

Byte - Byte value found at the indicated offset into the buffer.

PeekByte is a Byte function used to retrieve the value stored at the offset indicated by AIndex in the internal storage for the buffer. PeekByte does not remove or extract the byte value from the buffer. 

Use Extract to retrieve values from the buffer.

Exceptions 
Description 
Raised when the buffer is empty.
Raised with the offset into the buffer is less than 0 or greater than the Size of the buffer minus 1. 
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.