コード例 #1
0
 private byte[] ReadPalmDBRecord(PalmDBRecord palmDBRecord)
 {
     byte[] result = new byte[palmDBRecord.Length];
     this._stream.Seek(palmDBRecord.Info.Offset, SeekOrigin.Begin);
     this._stream.Read(result, 0, result.Length);
     return(result);
 }
コード例 #2
0
        private void RefreshPalmDBRecordList(IList <PalmDBRecordInfo> palmDBRecordInfoList)
        {
            this._palmDBRecordList.Clear();
            PalmDBRecord lastRecord = null;

            foreach (var palmDBRecordInfo in palmDBRecordInfoList)
            {
                var record = new PalmDBRecord(palmDBRecordInfo);
                if (lastRecord != null)
                {
                    lastRecord.Length = (int)(palmDBRecordInfo.Offset - lastRecord.Info.Offset);
                }
                this._palmDBRecordList.Add(record);
                lastRecord = record;
            }
        }