using System;
using System.Collections.Generic;
using System.Text;
namespace DataBuffer
{
public static class FileConfig
{
public static int STREAM_BUFFER_SIZE = 1024000;
public static int MAP_DISTANCE = 10;
}
}
DataFile.cs:
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
namespace DataBuffer
{
public class DataFile
{
///
/// 数据文件名
///
public string fileName = “”;
///
/// 初始化读取完标志
///
public bool done = false;
///
/// 当前流位置
///
public long Position = 0;
private Hashtable head=new Hashtable();
///
/// 文件头部信息
///
public Hashtable Head
{
get
{
return head;
}
set
{
head=value;
}
}
private ArrayList map = new ArrayList();
///
/// 文件地图
///
public ArrayList Map
{
get
{
return map;
}
set
{
map = value;
}
}
private long lines = 0;
///
/// 文件数据行行数
///
public long Lines
{
get
{
return lines;
}
set
{
lines = value;
}
}
}
}
DataBuffer.cs:
using System;
using S