Topic Path: Symbol Reference > Files > IdGlobal.pas
ContentsIndexHome
PreviousUpNext
IdGlobal.pas

Common routines and classes used in the Indy component suite.

IdGlobal.pas contains Classes, Types, Procedures, and Functions needed to define and implement common routines and classes used in the Indy component suite. 

IdGlobal.pas includes a IFDEF compiler directives to ensure that the Indy library is built correctly for the underlying Operating System or platform. This includes compatibility routines that mask the differences between .NET- and VCL-compatible platform implementations of the Indy library.

Class 
Description 
Exception raised when a service file entry is corrupted. 
Exception raised when an unexpected end of stream is encountered. 
Exception raised when creating an IPv6 address from its' representation as a string. 
Implements a file stream used to append content to a file in the local file system. 
Implements the ancestor for critical section classes in Indy. 
Ancestor class for thread-based event notifications. 
Implements a file stream which recreates the file used for storing stream content. 
Ancestor for classes requiring a platform-specific stream implementation. 
Represent critical sections used in the Indy library. 
Represents an array of pointers for VCL versions prior to VCL6. 
Event type signalled for thread-based notification messages. 
Implements a file stream using a non-shared write access file sharing mode. 
Implements a file stream using shared access for read operations. 
Constant 
Description 
Represents the Backspace characterin the US-ASCII character set. 
Represents the Null character. 
Represents the Space character. 
CR 
Represents the Carriage Return character. 
EOL 
Represents the End-of-Line character sequence. 
Indicates the Operating System hosting the Indy application. 
Identifies the platform- or operating system-specific path delimiter character. 
Identifies the prefix used for hexadecimal characters in a string. 
Number of hours in a day. 
Default value for the IP version number supported in protocol stack methods. 
Default value for case-sensitive comparisons in Fetch
Default value for the delete delimiter argument in Fetch and FetchCaseSensitive. 
Default delimiter(s) for Fetch and FetchCaseSenstive. 
Identifies characters used in the hexadecimal representation of a numeric value. 
Identifies characters used in the octal representation of a numeric value. 
Indicates that the default timeout value should be used. 
Indicates that an infinite timeout value should be used. 
Defines the platform-specific value used for infinite timeouts. 
This is constant INFINITE. 
LF 
Represents the Line Feed character. 
Number of minutes in a day. 
Number of minutes in an hour. 
Number of milliseconds in a day. 
Number of milliseconds in a second. 
Bit mask value for processing IP addresses. 
Bit mask value for processing IP addresses. 
Bit mask value for processing IP addresses. 
Bit mask value for processing IP addresses. 
Number of seconds in a day. 
Number of seconds in a minute. 
Indicates the default line end character sequence. 
TAB 
Represents the Tab character. 
 
 
 
 
 
 
 
Specifies whitespace characters. 
Enumeration 
Description 
Character set encodings used in ToBytes
Represents IP version numbers used in protocol-related classes. 
Action to take when the line length exceeds the maximum length in an Indy IOHandler. 
Represents valid values for the Operating System or Platform hosting the Indy application. 
Indicates how IP addresses and port numbers are reused for listener threads in TCP servers. 
 
Function 
Description 
Appends a byte value to the specified destination. 
AppendBytes is a utility procedure used with TIdBytes values. 
Adds a string value to existing data in a TIdBytes storage variable. 
Converts a TIdByte value to the ordinal datatype. 
Converts a byte value to a character data type. 
Converts byte values to a 64-bit integer data type. 
Converts a TIdByte value to the ordinal datatype. 
Converts byte values to an IP version 6 network address. 
Copies binary values from an array of bytes into an untyped buffer location. 
Ordinal value of the TIdByte argument.
Converts a TIdByte value to the ordinal datatype. 
Converts a TIdBytes value to a String datatype. 
Converts an array of byte values to its representation as a Word data type. 
Converts a byte value to its hexadecimal representation. 
Converts a byte value to its octal representation. 
Checks for end-of-line characters at a position in a string. 
Checks a character in a string for membership in a set of characters. 
Copies byte values between Array of Byte variables. 
Copies bytes values between TIdBytes instances. 
Stores the ordinal data type in an array of bytes. 
Copies bytes from an Int64 data type into an array of bytes. 
Copies word values from a structured IP into an array of bytes. 
Copies bytes values from the ordinal data type into the specified array of bytes. 
Copy all or part of a string data type into the specified array bytes. 
Copies bytes values from the ordinal data type into the specified array of bytes. 
Retrieves the process identifier for the active process. 
Determines the process identifier for the current thread of execution in the application. 
Writes output used during debugging. 
Parses a token from the delimited input string. 
Parses a token from the delimited input string without case-sensitivity. 
Initializes a specified number of bytes in an array of bytes to a specific value. 
Retrieves the handle or identifier for the specified thread. 
Calculates the elapsed tick count from two tick count values. 
Deletes a number of characters from a String beginning at a given position. 
Inserts a string value into an existing string at the indicated position. 
List of defined ports in the services file for the local host. 
iif 
Derives a return value based on a conditional expression. 
iif 
Derives a return value based on a conditional expression. 
iif 
Derives a return value based on a conditional expression. 
Compares two strings case sensitively. 
Converts a string to it's lowercase representation. 
Converts a string to it's uppercase representation. 
Determine if the current thread is the main thread for the application. 
Converts an IP version 4 IP address to its representation as an unsigned 32-bit numeric value. 
Converts an IP version 4 IP address to its representation as an unsigned 32-bit numeric value. 
Converts an IP version 4 address to its hexadecimal representation. 
Converts an IP version 4 address to its octal representation. 
Converts an IPV6 address to a colon-delimited hexidecimal string. 
Converts a string to an IPv6 network address. 
Determines if the byte value can be represented using characters from the US-ASCII character set. 
Determines if byte values can be represented in the US-ASCII character set. 
Determines if a byte value is a Letter, Digit, or Hyphen in the US-ASCII character set. 
Determines if a byte values contain only Letters, Digits, or Hyphens in the US-ASCII character set. 
Determines if the specified thread is the current thread of execution. 
Determines if the character is a valid hexadecimal digit. 
Determines if the characters are valid hexadecimal digit. 
Determines if the character is a valid numeric digit. 
Determines if the characters are valid numeric digits. 
Determines if the character is a valid octal digit. 
Determines if the characters are valid octal digits. 
Converts and IP version 4 address to its simplest and most significant form. 
Converts and IP version 6 address to its simplest and most significant form. 
Converts a numeric internet address to its canonical representation in dotted decimal form. 
Max 
Determines the larger of two 64-bit Integer values. 
Locates a string occurring in the specified memory buffer. 
Min 
Determines the smaller of two 64-bit integer values. 
Locates the position of a string within another string. 
Determines the position of the specified SmallInt value in an array of SmallInt values. 
Searches an array of strings for an occurrence of the search string. 
Converts values to their representation as a TIdBytes data type. 
Copies untyped values into a fixed-size array of Bytes. 
Reads a character value from a stream implementation. 
Reads a line of text from a stream. 
Reads a string value from a stream implementation. 
 
Determines the location of the services file for the local file system. 
Sets the name for the current thread of execution. 
Adjusts the priority of a thread relative to other processes. 
Suspends the current thread for the specified number of milliseconds. 
Separates values specified in AData into columns. 
Separates values specified in AData into columns. 
 
Compares strings based on the current locale without case sensitivity. 
Checks for the specified substring at the beginning of the specified text. 
Retrieves the number of milliseconds since the computer was started. 
Converts the data type to a TIdBytes value. 
Converts the data type to a TIdBytes value. 
Converts the data type to a TIdBytes value. 
Converts the data type to a TIdBytes value. 
Converts the data type to a TIdBytes value. 
Converts the data type to a TIdBytes value. 
Converts the data type to a TIdBytes value. 
Converts the data type to a TIdBytes value. 
Converts the data type to a TIdBytes value. 
 
 
 
 
 
 
 
 
ToDo 
 
Converts values to their hexadecimal representation. 
Converts values to their hexadecimal representation. 
Converts two byte values to their Word representation. 
Writes the contents of a memory stream to a TStream descendant. 
Writes a string data type to a stream. 
Write TIdBytes values to a TStream. 
Type 
Description 
This is type PCardinal. 
Native storage format for 16-bit Integer values on the .Net platform. 
Array of byte data type for Windows and Linix. 
Represents file, socket, or thread handles used in the Indy library. 
Represents a platform-agnostic string representation. 
Represents the native storage for an IPv6 address. 
Represents an Indy process identifier. 
Represents port numbers used for connections in the Indy library. 
Indicates the scheduling priority for a thread. 
 
Variable 
Description 
Specifies the Pos function handler for single- or multi-byte character sets. 
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.