RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.TFileRec Record

TFileRec is the internal format for typed and untyped files in the Delphi language.

Pascal
TFileRec = packed record
  Handle: Integer;
  Mode: Word;
  Flags: Word;
  case Byte of
    0: (RecSize: Cardinal;);
    1: (BufSize: Cardinal;
        BufPos: Cardinal;
        BufEnd: Cardinal;
        BufPtr: PChar;
        OpenFunc: Pointer;
        InOutFunc: Pointer;
        FlushFunc: Pointer;
        CloseFunc: Pointer;
        UserData: array[1..32] of Byte;
        Name: array[0..259] of Char;);
end;
C++
struct TFileRec {
  int Handle;
  Word Mode;
  Word Flags;
  unsigned RecSize;
  unsigned BufSize;
  unsigned BufPos;
  unsigned BufEnd;
  const char * BufPtr;
  void * OpenFunc;
  void * InOutFunc;
  void * FlushFunc;
  void * CloseFunc;
  array[1..32] of Byte UserData;
  array[0..259] of Char Name;
};

System

TFileRec is the internal format for typed and untyped files. TFileRec enables you to typecast a Delphi file variable to access its internal fields.

Note: You would normally never declare a variable of this type.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!