gistfile.h

来自「一个俄国人写的内存数据库系统」· C头文件 代码 · 共 37 行

H
37
字号
// Mode: -*- C++ -*-//          GiSTfile.h//// Copyright (c) 1996, Regents of the University of California// $Header: /usr/local/devel/GiST/libGiST/libGiST/GiSTfile.h,v 1.1.1.1 1996/08/06 23:47:21 jmh Exp $#ifndef GISTFILE_H#define GISTFILE_H#include "GiSTstore.h"// GiSTfile is a simple storage class for GiSTs to work over // UNIX/NT files.class GiSTfile : public GiSTstore {public:  GiSTfile() : GiSTstore() {}  void Create(const char *filename);  void Open(const char *filename);  void Close();  void Read(GiSTpage page, char *buf);  void Write(GiSTpage page, const char *buf);  GiSTpage Allocate();  void Deallocate(GiSTpage page);  void Sync() {}  int PageSize() const { return 8192; }private:  int fileHandle;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?