private Int32 computeIndexFileLengthInWords(ShapeFileIndex index) { Int32 length = ShapeFileConstants.HeaderSizeBytes / 2; length += index.Count * ShapeFileConstants.IndexRecordByteLength / 2; return(length); }
private Int32 computeMainFileLengthInWords(ShapeFileIndex index) { Int32 length = ShapeFileConstants.HeaderSizeBytes / 2; foreach (KeyValuePair <UInt32, ShapeFileIndex.IndexEntry> kvp in index) { length += kvp.Value.Length + ShapeFileConstants.ShapeRecordHeaderByteLength / 2; } return(length); }