123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
-
- using System;
- namespace TEAMModelOS.SDK
- {
- public class DbMakerConfigException : Exception
- {
- public string ErrMsg { get; private set; }
- public DbMakerConfigException(string errMsg)
- {
- ErrMsg = errMsg;
- }
- }
- public class IPConfig
- {
- public int TotalHeaderSize
- {
- get;
- private set;
- }
- public int indexBlockSize
- {
- get;
- private set;
- }
- public IPConfig(int totalHeaderSize)
- {
- if ((totalHeaderSize % 8) != 0)
- {
- throw new DbMakerConfigException("totalHeaderSize must be times of 8");
- }
- TotalHeaderSize = totalHeaderSize;
- //4 * 2048
- indexBlockSize = 8192;
- }
- public IPConfig():this(8 * 2048)
- {
- }
- }
- }
|