* File Structure for persisting history in a disk file (Comments please)
@ 2010-11-01 19:06 rajyalakshmi bommaraju
0 siblings, 0 replies; only message in thread
From: rajyalakshmi bommaraju @ 2010-11-01 19:06 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1058 bytes --]
Hello,
I want to use the following file structure for persisting history in a
disk file. Can you please send me your feedback about it.
Thanks
Raji Bommaraju
_File structure for History
Persistance_
History information will be stored in a disk file. The file will have a
File Header consisting of "Bytes Stored" and "Head" for writing the next
record.Each record stored will have record header and record data,
record header has "record type" and "size of the record" (For Text
messages the records will have variable length message data resulting in
variable length records) hence this record structure is used.
*File Format:*
|File Header| Data |
File Header (8 bytes):
|Bytes stored | Head|
0 4 8
*Data:*
|Record|Record|.....etc
*Record:*
|Record Header|Actual data|
*Record Header:*
Record Type: 1byte (voice call history - 0, text history- 1)
Size : Integer
Actual data: Will be voice call or text message information
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-01 19:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-01 19:06 File Structure for persisting history in a disk file (Comments please) rajyalakshmi bommaraju
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.