// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Idglobal.pas' rev: 10.00

#ifndef IdglobalHPP
#define IdglobalHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Syncobjs.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Idexception.hpp>	// Pascal unit
#include <Idsys.hpp>	// Pascal unit
#include <Idobjs.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Idglobal
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TIdEncoding { enDefault, enANSI, enUTF8 };
#pragma option pop

class DELPHICLASS TIdAppendFileStream;
class PASCALIMPLEMENTATION TIdAppendFileStream : public Classes::TFileStream 
{
	typedef Classes::TFileStream inherited;
	
public:
	__fastcall TIdAppendFileStream(const AnsiString AFile);
public:
	#pragma option push -w-inl
	/* TFileStream.Destroy */ inline __fastcall virtual ~TIdAppendFileStream(void) { }
	#pragma option pop
	
};


class DELPHICLASS TIdReadFileExclusiveStream;
class PASCALIMPLEMENTATION TIdReadFileExclusiveStream : public Classes::TFileStream 
{
	typedef Classes::TFileStream inherited;
	
public:
	__fastcall TIdReadFileExclusiveStream(const AnsiString AFile);
public:
	#pragma option push -w-inl
	/* TFileStream.Destroy */ inline __fastcall virtual ~TIdReadFileExclusiveStream(void) { }
	#pragma option pop
	
};


class DELPHICLASS TIdReadFileNonExclusiveStream;
class PASCALIMPLEMENTATION TIdReadFileNonExclusiveStream : public Classes::TFileStream 
{
	typedef Classes::TFileStream inherited;
	
public:
	__fastcall TIdReadFileNonExclusiveStream(const AnsiString AFile);
public:
	#pragma option push -w-inl
	/* TFileStream.Destroy */ inline __fastcall virtual ~TIdReadFileNonExclusiveStream(void) { }
	#pragma option pop
	
};


class DELPHICLASS TIdFileCreateStream;
class PASCALIMPLEMENTATION TIdFileCreateStream : public Classes::TFileStream 
{
	typedef Classes::TFileStream inherited;
	
public:
	__fastcall TIdFileCreateStream(const AnsiString AFile);
public:
	#pragma option push -w-inl
	/* TFileStream.Destroy */ inline __fastcall virtual ~TIdFileCreateStream(void) { }
	#pragma option pop
	
};


;

class DELPHICLASS TIdLocalEvent;
class PASCALIMPLEMENTATION TIdLocalEvent : public Syncobjs::TEvent 
{
	typedef Syncobjs::TEvent inherited;
	
public:
	__fastcall TIdLocalEvent(const bool AInitialState, const bool AManualReset);
	Syncobjs::TWaitResult __fastcall WaitForEver(void)/* overload */;
public:
	#pragma option push -w-inl
	/* THandleObject.Destroy */ inline __fastcall virtual ~TIdLocalEvent(void) { }
	#pragma option pop
	
};


class DELPHICLASS TIdCriticalSection;
class PASCALIMPLEMENTATION TIdCriticalSection : public Syncobjs::TCriticalSection 
{
	typedef Syncobjs::TCriticalSection inherited;
	
public:
	#pragma option push -w-inl
	/* TCriticalSection.Create */ inline __fastcall TIdCriticalSection(void) : Syncobjs::TCriticalSection() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TCriticalSection.Destroy */ inline __fastcall virtual ~TIdCriticalSection(void) { }
	#pragma option pop
	
};


class DELPHICLASS EIdCorruptServicesFile;
class PASCALIMPLEMENTATION EIdCorruptServicesFile : public Idexception::EIdException 
{
	typedef Idexception::EIdException inherited;
	
public:
	#pragma option push -w-inl
	/* EIdException.Create */ inline __fastcall virtual EIdCorruptServicesFile(AnsiString AMsg)/* overload */ : Idexception::EIdException(AMsg) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall EIdCorruptServicesFile(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size) : Idexception::EIdException(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall EIdCorruptServicesFile(int Ident)/* overload */ : Idexception::EIdException(Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall EIdCorruptServicesFile(int Ident, System::TVarRec const * Args, const int Args_Size)/* overload */ : Idexception::EIdException(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall EIdCorruptServicesFile(const AnsiString Msg, int AHelpContext) : Idexception::EIdException(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall EIdCorruptServicesFile(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size, int AHelpContext) : Idexception::EIdException(Msg, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall EIdCorruptServicesFile(int Ident, int AHelpContext)/* overload */ : Idexception::EIdException(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall EIdCorruptServicesFile(System::PResStringRec ResStringRec, System::TVarRec const * Args, const int Args_Size, int AHelpContext)/* overload */ : Idexception::EIdException(ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~EIdCorruptServicesFile(void) { }
	#pragma option pop
	
};


class DELPHICLASS EIdEndOfStream;
class PASCALIMPLEMENTATION EIdEndOfStream : public Idexception::EIdException 
{
	typedef Idexception::EIdException inherited;
	
public:
	#pragma option push -w-inl
	/* EIdException.Create */ inline __fastcall virtual EIdEndOfStream(AnsiString AMsg)/* overload */ : Idexception::EIdException(AMsg) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall EIdEndOfStream(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size) : Idexception::EIdException(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall EIdEndOfStream(int Ident)/* overload */ : Idexception::EIdException(Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall EIdEndOfStream(int Ident, System::TVarRec const * Args, const int Args_Size)/* overload */ : Idexception::EIdException(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall EIdEndOfStream(const AnsiString Msg, int AHelpContext) : Idexception::EIdException(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall EIdEndOfStream(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size, int AHelpContext) : Idexception::EIdException(Msg, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall EIdEndOfStream(int Ident, int AHelpContext)/* overload */ : Idexception::EIdException(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall EIdEndOfStream(System::PResStringRec ResStringRec, System::TVarRec const * Args, const int Args_Size, int AHelpContext)/* overload */ : Idexception::EIdException(ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~EIdEndOfStream(void) { }
	#pragma option pop
	
};


class DELPHICLASS EIdInvalidIPv6Address;
class PASCALIMPLEMENTATION EIdInvalidIPv6Address : public Idexception::EIdException 
{
	typedef Idexception::EIdException inherited;
	
public:
	#pragma option push -w-inl
	/* EIdException.Create */ inline __fastcall virtual EIdInvalidIPv6Address(AnsiString AMsg)/* overload */ : Idexception::EIdException(AMsg) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* Exception.CreateFmt */ inline __fastcall EIdInvalidIPv6Address(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size) : Idexception::EIdException(Msg, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateRes */ inline __fastcall EIdInvalidIPv6Address(int Ident)/* overload */ : Idexception::EIdException(Ident) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmt */ inline __fastcall EIdInvalidIPv6Address(int Ident, System::TVarRec const * Args, const int Args_Size)/* overload */ : Idexception::EIdException(Ident, Args, Args_Size) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateHelp */ inline __fastcall EIdInvalidIPv6Address(const AnsiString Msg, int AHelpContext) : Idexception::EIdException(Msg, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateFmtHelp */ inline __fastcall EIdInvalidIPv6Address(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size, int AHelpContext) : Idexception::EIdException(Msg, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResHelp */ inline __fastcall EIdInvalidIPv6Address(int Ident, int AHelpContext)/* overload */ : Idexception::EIdException(Ident, AHelpContext) { }
	#pragma option pop
	#pragma option push -w-inl
	/* Exception.CreateResFmtHelp */ inline __fastcall EIdInvalidIPv6Address(System::PResStringRec ResStringRec, System::TVarRec const * Args, const int Args_Size, int AHelpContext)/* overload */ : Idexception::EIdException(ResStringRec, Args, Args_Size, AHelpContext) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~EIdInvalidIPv6Address(void) { }
	#pragma option pop
	
};


typedef DynamicArray<Byte >  TBytes;

typedef DynamicArray<Byte >  TIdBytes;

typedef int TIdPort;

typedef Word TIdIPv6Address[8];

#pragma option push -b-
enum TIdMaxLineAction { maException, maSplit };
#pragma option pop

#pragma option push -b-
enum TIdOSType { otUnknown, otLinux, otWindows, otDotNet };
#pragma option pop

#pragma option push -b-
enum TIdIPVersion { Id_IPv4, Id_IPv6 };
#pragma option pop

typedef unsigned TIdPID;

typedef Classes::TThreadPriority TIdThreadPriority;

typedef unsigned THandle;

typedef int __fastcall (*TPosProc)(const AnsiString substr, const AnsiString str);

#pragma option push -b-
enum TIdReuseSocket { rsOSDependent, rsTrue, rsFalse };
#pragma option pop

class DELPHICLASS TIdExtList;
class PASCALIMPLEMENTATION TIdExtList : public Classes::TList 
{
	typedef Classes::TList inherited;
	
public:
	#pragma option push -w-inl
	/* TList.Destroy */ inline __fastcall virtual ~TIdExtList(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TIdExtList(void) : Classes::TList() { }
	#pragma option pop
	
};


class DELPHICLASS TIdBaseStream;
class PASCALIMPLEMENTATION TIdBaseStream : public Classes::TStream 
{
	typedef Classes::TStream inherited;
	
protected:
	virtual int __fastcall IdRead(TBytes &VBuffer, int AOffset, int ACount) = 0 ;
	virtual int __fastcall IdWrite(const TBytes ABuffer, int AOffset, int ACount) = 0 ;
	virtual __int64 __fastcall IdSeek(const __int64 AOffset, Classes::TSeekOrigin AOrigin) = 0 ;
	virtual void __fastcall IdSetSize(__int64 ASize) = 0 ;
	virtual void __fastcall SetSize(int ASize)/* overload */;
	
public:
	virtual int __fastcall Read(void *VBuffer, int ACount);
	virtual int __fastcall Write(const void *ABuffer, int ACount);
	virtual int __fastcall Seek(int AOffset, Word AOrigin)/* overload */;
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TIdBaseStream(void) : Classes::TStream() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TIdBaseStream(void) { }
	#pragma option pop
	
	
/* Hoisted overloads: */
	
protected:
	inline void __fastcall  SetSize(const __int64 NewSize){ TStream::SetSize(NewSize); }
	
public:
	inline __int64 __fastcall  Seek(const __int64 Offset, Classes::TSeekOrigin Origin){ return TStream::Seek(Offset, Origin); }
	
};


//-- var, const, procedure ---------------------------------------------------
#define gsIdVersion "10.1.5"
#define gsIdProductName "Indy"
static const Shortint HoursPerDay = 0x18;
static const Shortint MinsPerHour = 0x3c;
static const Shortint SecsPerMin = 0x3c;
static const Word MSecsPerSec = 0x3e8;
static const Word MinsPerDay = 0x5a0;
static const int SecsPerDay = 0x15180;
static const int MSecsPerDay = 0x5265c00;
static const char LF = '\xa';
static const char CR = '\xd';
#define EOL "\r\n"
static const char CHAR0 = '\x0';
static const char BACKSPACE = '\x8';
static const char TAB = '\x9';
static const char CHAR32 = '\x20';
static const Shortint IdTimeoutDefault = -1;
static const Shortint IdTimeoutInfinite = -2;
static const char IdFetchDelimDefault = '\x20';
static const bool IdFetchDeleteDefault = true;
static const bool IdFetchCaseSensitiveDefault = true;
#define WhiteSpace (Set<Byte, 0, 255> () << 0x0 << 0x1 << 0x2 << 0x3 << 0x4 << 0x5 << 0x6 << 0x7 << 0x8 << 0x9 << 0xa << 0xb << 0xc << 0xe << 0xf << 0x10 << 0x11 << 0x12 << 0x13 << 0x14 << 0x15 << 0x16 << 0x17 << 0x18 << 0x19 << 0x1a << 0x1b << 0x1c << 0x1d << 0x1e << 0x1f << 0x20 << 0x21 << 0x22 << 0x23 << 0x24 << 0x25 << 0x26 << 0x27 )
extern PACKAGE char IdHexDigits[16];
extern PACKAGE char IdOctalDigits[8];
#define HEXPREFIX "0x"
#define GOSType (TIdOSType)(2)
static const char GPathDelim = '\x5c';
static const unsigned Infinite = 0xffffffff;
#define ID_DEFAULT_IP_VERSION (TIdIPVersion)(0)
static const Byte POWER_1 = 0xff;
static const Word POWER_2 = 0xffff;
static const int POWER_3 = 0xffffff;
static const unsigned POWER_4 = 0xffffffff;
extern PACKAGE TPosProc IndyPos;
extern PACKAGE void __fastcall FillBytes(TBytes &VBytes, const int ACount, const Byte AValue);
extern PACKAGE bool __fastcall IsASCIILDH(const Byte AByte)/* overload */;
extern PACKAGE bool __fastcall IsASCIILDH(const TBytes ABytes)/* overload */;
extern PACKAGE bool __fastcall IsASCII(const Byte AByte)/* overload */;
extern PACKAGE bool __fastcall IsASCII(const TBytes ABytes)/* overload */;
extern PACKAGE bool __fastcall StartsWithACE(const TBytes ABytes);
extern PACKAGE int __fastcall PosInSmallIntArray(const short ASearchInt, short * AArray, const int AArray_Size);
extern PACKAGE int __fastcall PosInStrArray(const AnsiString SearchStr, AnsiString * Contents, const int Contents_Size, const bool CaseSensitive = true);
extern PACKAGE AnsiString __fastcall ByteToHex(const Byte AByte);
extern PACKAGE AnsiString __fastcall ToHex(const TBytes AValue)/* overload */;
extern PACKAGE AnsiString __fastcall ToHex(unsigned const * AValue, const int AValue_Size)/* overload */;
extern PACKAGE AnsiString __fastcall IPv4ToHex(const AnsiString AIPAddress, const bool ASDotted = false);
extern PACKAGE AnsiString __fastcall ByteToOctal(const Byte AByte);
extern PACKAGE AnsiString __fastcall IPv4ToOctal(const AnsiString AIPAddress);
extern PACKAGE void __fastcall CopyTIdBytes(const TBytes ASource, const int ASourceIndex, TBytes &VDest, const int ADestIndex, const int ALength);
extern PACKAGE void __fastcall CopyTIdChar(const char ASource, TBytes &VDest, const int ADestIndex);
extern PACKAGE void __fastcall CopyTIdShort(const short ASource, TBytes &VDest, const int ADestIndex);
extern PACKAGE void __fastcall CopyTIdWord(const Word ASource, TBytes &VDest, const int ADestIndex);
extern PACKAGE void __fastcall CopyTIdInteger(const int ASource, TBytes &VDest, const int ADestIndex);
extern PACKAGE void __fastcall CopyTIdLongWord(const unsigned ASource, TBytes &VDest, const int ADestIndex);
extern PACKAGE void __fastcall CopyTIdInt64(const __int64 ASource, TBytes &VDest, const int ADestIndex);
extern PACKAGE void __fastcall CopyTIdIPV6Address(Word const * ASource, TBytes &VDest, const int ADestIndex);
extern PACKAGE void __fastcall CopyTIdCardinal(const unsigned ASource, TBytes &VDest, const int ADestIndex);
extern PACKAGE void __fastcall CopyTIdByteArray(Byte const * ASource, const int ASource_Size, const int ASourceIndex, Byte * VDest, const int VDest_Size, const int ADestIndex, const int ALength);
extern PACKAGE void __fastcall CopyTIdString(const AnsiString ASource, TBytes &VDest, const int ADestIndex, const int ALength = 0xffffffff);
extern PACKAGE void __fastcall DebugOutput(const AnsiString AText);
extern PACKAGE unsigned __fastcall CurrentThreadId(void);
extern PACKAGE unsigned __fastcall CurrentProcessId(void);
extern PACKAGE AnsiString __fastcall Fetch(AnsiString &AInput, const AnsiString ADelim = " ", const bool ADelete = true, const bool ACaseSensitive = true);
extern PACKAGE AnsiString __fastcall FetchCaseInsensitive(AnsiString &AInput, const AnsiString ADelim = " ", const bool ADelete = true);
extern PACKAGE unsigned __fastcall GetThreadHandle(Classes::TThread* AThread);
extern PACKAGE unsigned __fastcall Ticks(void);
extern PACKAGE unsigned __fastcall GetTickDiff(const unsigned AOldTickCount, const unsigned ANewTickCount);
extern PACKAGE AnsiString __fastcall ServicesFilePath();
extern PACKAGE Classes::TList* __fastcall IdPorts(void);
extern PACKAGE int __fastcall iif(bool ATest, const int ATrue, const int AFalse)/* overload */;
extern PACKAGE AnsiString __fastcall iif(bool ATest, const AnsiString ATrue, const AnsiString AFalse = "")/* overload */;
extern PACKAGE bool __fastcall iif(bool ATest, const bool ATrue, const bool AFalse)/* overload */;
extern PACKAGE bool __fastcall InMainThread(void);
extern PACKAGE void __fastcall WriteMemoryStreamToStream(Classes::TMemoryStream* Src, Classes::TStream* Dest, __int64 Count);
extern PACKAGE bool __fastcall IsCurrentThread(Classes::TThread* AThread);
extern PACKAGE AnsiString __fastcall MakeDWordIntoIPv4Address(const unsigned ADWord);
extern PACKAGE bool __fastcall IsAlpha(const char AChar)/* overload */;
extern PACKAGE bool __fastcall IsAlpha(const AnsiString AString)/* overload */;
extern PACKAGE bool __fastcall IsAlphaNumeric(const char AChar)/* overload */;
extern PACKAGE bool __fastcall IsAlphaNumeric(const AnsiString AString)/* overload */;
extern PACKAGE bool __fastcall IsOctal(const char AChar)/* overload */;
extern PACKAGE bool __fastcall IsOctal(const AnsiString AString)/* overload */;
extern PACKAGE bool __fastcall IsHexidecimal(const char AChar)/* overload */;
extern PACKAGE bool __fastcall IsHexidecimal(const AnsiString AString)/* overload */;
extern PACKAGE bool __fastcall IsNumeric(const AnsiString AString)/* overload */;
extern PACKAGE bool __fastcall IsNumeric(const char AChar)/* overload */;
extern PACKAGE unsigned __fastcall IPv4ToDWord(const AnsiString AIPAddress)/* overload */;
extern PACKAGE unsigned __fastcall IPv4ToDWord(const AnsiString AIPAddress, bool &VErr)/* overload */;
extern PACKAGE AnsiString __fastcall IPv6AddressToStr(Word const * AValue);
extern PACKAGE AnsiString __fastcall MakeCanonicalIPv4Address(const AnsiString AAddr);
extern PACKAGE AnsiString __fastcall MakeCanonicalIPv6Address(const AnsiString AAddr);
extern PACKAGE Word __fastcall IPv6ToIdIPv6Address(const AnsiString AIPAddress);
extern PACKAGE __int64 __fastcall Max(const __int64 AValueOne, const __int64 AValueTwo);
extern PACKAGE int __fastcall MemoryPos(const AnsiString ASubStr, char * MemBuff, int MemorySize);
extern PACKAGE __int64 __fastcall Min(const __int64 AValueOne, const __int64 AValueTwo);
extern PACKAGE unsigned __fastcall PosIdx(const AnsiString ASubStr, const AnsiString AStr, unsigned AStartPos = (unsigned)(0x0));
extern PACKAGE void __fastcall SetThreadPriority(Classes::TThread* AThread, const Classes::TThreadPriority APriority, const int APolicy = 0x80000001);
extern PACKAGE void __fastcall Sleep(unsigned ATime);
extern PACKAGE void __fastcall SplitColumnsNoTrim(const AnsiString AData, Classes::TStrings* AStrings, const AnsiString ADelim = " ");
extern PACKAGE void __fastcall SetThreadName(const AnsiString AName);
extern PACKAGE void __fastcall SplitColumns(const AnsiString AData, Classes::TStrings* AStrings, const AnsiString ADelim = " ");
extern PACKAGE void __fastcall ToDo(void);
extern PACKAGE int __fastcall IndyLength(const AnsiString ABuffer, const int ALength = 0xffffffff, const int AIndex = 0x1)/* overload */;
extern PACKAGE int __fastcall IndyLength(const TBytes ABuffer, const int ALength = 0xffffffff, const int AIndex = 0x0)/* overload */;
extern PACKAGE int __fastcall IndyLength(const Classes::TStream* ABuffer, const int ALength = 0xffffffff)/* overload */;
extern PACKAGE TBytes __fastcall ToBytes(const AnsiString AValue, const int ALength = 0xffffffff, const TIdEncoding AEncoding = (TIdEncoding)(0x1))/* overload */;
extern PACKAGE TBytes __fastcall ToBytes(const char AValue)/* overload */;
extern PACKAGE TBytes __fastcall ToBytes(const __int64 AValue)/* overload */;
extern PACKAGE TBytes __fastcall ToBytes(const int AValue)/* overload */;
extern PACKAGE TBytes __fastcall ToBytes(const unsigned AValue)/* overload */;
extern PACKAGE TBytes __fastcall ToBytes(const short AValue)/* overload */;
extern PACKAGE TBytes __fastcall ToBytes(const Word AValue)/* overload */;
extern PACKAGE TBytes __fastcall ToBytes(const Byte AValue)/* overload */;
extern PACKAGE TBytes __fastcall ToBytes(const TBytes AValue, const int ASize, const int AIndex = 0x0)/* overload */;
extern PACKAGE TBytes __fastcall RawToBytes(const void *AValue, const int ASize);
extern PACKAGE void __fastcall ToBytesF(TBytes &Bytes, const char AValue)/* overload */;
extern PACKAGE void __fastcall ToBytesF(TBytes &Bytes, const int AValue)/* overload */;
extern PACKAGE void __fastcall ToBytesF(TBytes &Bytes, const short AValue)/* overload */;
extern PACKAGE void __fastcall ToBytesF(TBytes &Bytes, const Word AValue)/* overload */;
extern PACKAGE void __fastcall ToBytesF(TBytes &Bytes, const Byte AValue)/* overload */;
extern PACKAGE void __fastcall ToBytesF(TBytes &Bytes, const unsigned AValue)/* overload */;
extern PACKAGE void __fastcall ToBytesF(TBytes &Bytes, const __int64 AValue)/* overload */;
extern PACKAGE void __fastcall ToBytesF(TBytes &Bytes, const TBytes AValue, const int ASize, const int AIndex = 0x0)/* overload */;
extern PACKAGE void __fastcall RawToBytesF(TBytes &Bytes, const void *AValue, const int ASize);
extern PACKAGE char __fastcall BytesToChar(const TBytes AValue, const int AIndex = 0x0);
extern PACKAGE int __fastcall BytesToInteger(const TBytes AValue, const int AIndex = 0x0);
extern PACKAGE __int64 __fastcall BytesToInt64(const TBytes AValue, const int AIndex = 0x0);
extern PACKAGE unsigned __fastcall BytesToLongWord(const TBytes AValue, const int AIndex = 0x0);
extern PACKAGE Word __fastcall BytesToWord(const TBytes AValue, const int AIndex = 0x0);
extern PACKAGE short __fastcall BytesToShort(const TBytes AValue, const int AIndex = 0x0);
extern PACKAGE AnsiString __fastcall BytesToIPv4Str(const TBytes AValue, const int AIndex = 0x0);
extern PACKAGE Word __fastcall BytesToIPv6(const TBytes AValue, const int AIndex = 0x0);
extern PACKAGE unsigned __fastcall BytesToCardinal(const TBytes AValue, const int AIndex = 0x0);
extern PACKAGE AnsiString __fastcall BytesToString(const TBytes AValue, int AStartIndex = 0x0, int AMaxCount = 0x7fffffff);
extern PACKAGE void __fastcall BytesToRaw(const TBytes AValue, void *VBuffer, const int ASize);
extern PACKAGE Word __fastcall TwoByteToWord(Byte AByte1, Byte AByte2);
extern PACKAGE AnsiString __fastcall ReadStringFromStream(Classes::TStream* AStream, int ASize = 0xffffffff);
extern PACKAGE int __fastcall ReadTIdBytesFromStream(const Classes::TStream* AStream, TBytes &ABytes, const int Count);
extern PACKAGE int __fastcall ReadCharFromStream(Classes::TStream* AStream, char &AChar);
extern PACKAGE void __fastcall WriteTIdBytesToStream(const Classes::TStream* AStream, const TBytes ABytes, const int ASize = 0xffffffff);
extern PACKAGE void __fastcall WriteStringToStream(Classes::TStream* AStream, const AnsiString AStr);
extern PACKAGE void __fastcall AppendBytes(TBytes &VBytes, const TBytes AToAdd, const int AIndex = 0x0);
extern PACKAGE void __fastcall AppendByte(TBytes &VBytes, const Byte AByte);
extern PACKAGE void __fastcall AppendString(TBytes &VBytes, const AnsiString AStr, int ALength = 0xffffffff);
extern PACKAGE void __fastcall ExpandBytes(TBytes &VBytes, const int AIndex, const int ACount, const Byte AFillByte = (Byte)(0x0));
extern PACKAGE void __fastcall InsertBytes(TBytes &VBytes, const int ADestIndex, const TBytes ASource, const int ASourceIndex = 0x0);
extern PACKAGE void __fastcall InsertByte(TBytes &VBytes, const Byte AByte, const int AIndex);
extern PACKAGE void __fastcall RemoveBytes(TBytes &VBytes, const int ACount, const int AIndex = 0x0);
extern PACKAGE void __fastcall IdDelete(AnsiString &s, int AOffset, int ACount);
extern PACKAGE void __fastcall IdInsert(const AnsiString Source, AnsiString &S, int Index);
extern PACKAGE bool __fastcall TextIsSame(const AnsiString A1, const AnsiString A2);
extern PACKAGE bool __fastcall TextStartsWith(const AnsiString S, const AnsiString SubS);
extern PACKAGE bool __fastcall TextEndsWith(const AnsiString S, const AnsiString SubS);
extern PACKAGE AnsiString __fastcall IndyLowerCase(const AnsiString A1);
extern PACKAGE AnsiString __fastcall IndyUpperCase(const AnsiString A1);
extern PACKAGE int __fastcall IndyCompareStr(const AnsiString A1, const AnsiString A2);
extern PACKAGE int __fastcall CharPosInSet(const AnsiString AString, const int ACharPos, const AnsiString ASet);
extern PACKAGE bool __fastcall CharIsInSet(const AnsiString AString, const int ACharPos, const AnsiString ASet);
extern PACKAGE bool __fastcall CharIsInEOL(const AnsiString AString, int ACharPos);
extern PACKAGE int __fastcall ByteIndex(const Byte AByte, const TBytes ABytes, const int AStartIndex = 0x0);
extern PACKAGE int __fastcall ByteIdxInSet(const TBytes ABytes, const int AIndex, const TBytes ASet);
extern PACKAGE bool __fastcall ByteIsInSet(const TBytes ABytes, const int AIndex, const TBytes ASet);
extern PACKAGE bool __fastcall ByteIsInEOL(const TBytes ABytes, const int AIndex);
extern PACKAGE AnsiString __fastcall ReadLnFromStream(Classes::TStream* AStream, int AMaxLineLength = 0xffffffff, bool AExceptionIfEOF = false);

}	/* namespace Idglobal */
using namespace Idglobal;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Idglobal
