System.TFileRec

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

  TFileRec = packed record (* must match the size the compiler generates: 592 bytes (616 bytes for x64) *)
    Handle: NativeInt;
    Mode: Word;
    Flags: Word;
    case Byte of
      0: (RecSize: Cardinal);   //  files of record
      1: (BufSize: Cardinal;    //  text files
          BufPos: Cardinal;
          BufEnd: Cardinal;
          BufPtr: _PAnsiChr;
          OpenFunc: Pointer;
          InOutFunc: Pointer;
          FlushFunc: Pointer;
          CloseFunc: Pointer;
          UserData: array[1..32] of Byte;
          Name: array[0..259] of WideChar;
      );
  end;

C++

struct DECLSPEC_DRECORD TFileRec
{
public:
    NativeInt Handle;
    Word Mode;
    Word Flags;
public:
    union
    {
        struct
        {
            unsigned BufSize;
            unsigned BufPos;
            unsigned BufEnd;
            char *BufPtr;
            void *OpenFunc;
            void *InOutFunc;
            void *FlushFunc;
            void *CloseFunc;
            System::StaticArray<Byte, 32> UserData;
            System::StaticArray<WideChar, 260> Name;
        };
        struct
        {
            unsigned RecSize;
        };
    };
};

プロパティ

種類 可視性 ソース ユニット
record
struct
public
System.pas
System.hpp
System System

説明

TFileRec は、Delphi 言語の型付きファイルと型なしファイルのための内部形式です。

TFileRec は、型付きファイルと型なしファイルのための内部形式です。TFileRec を利用して Delphi のファイル変数を型キャストすると、その内部のフィールドにアクセスできます。

メモ:  通常、ユーザーはこの型の変数を宣言することはありません。