Files
zszq-trs/Framework/YLErp.Core/DotNetDBF/DBTHeader.cs
T
2024-05-09 14:06:26 +08:00

32 lines
681 B
C#

namespace DotNetDBF
{
public class DBTHeader
{
public const byte FieldTerminator = 0x1A;
private int _nextBlock; /* 0-3*/
private byte _version = 0x03;
internal int NextBlock
{
get => _nextBlock;
set => _nextBlock = value;
}
internal byte Version
{
get => _version;
set => _version = value;
}
internal void Write(BinaryWriter dataOutput)
{
dataOutput.Write(_nextBlock);
dataOutput.Write(new byte[12]);
dataOutput.Write(_version);
dataOutput.Write(new byte[495]);
}
}
}