Internet Direct (Indy)
Home
PreviousUpNext
TIdBuffer.PeekByte Method

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

Pascal
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. 
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.