• Post Reply Bookmark Topic Watch Topic
  • New Topic

NX:About Data file

 
xi ruo
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
db-1x2.db:
...
2 byte flag. 00 implies valid record, 0x8000 implies deleted record
...
"00" is a 2 byte.
0x8000?Is it 2 byte.What's the type?
 
Arun Kumar
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use readShort() and writeShort() for that. i think if you use readShort() you will get -32768 (please check it). So in writeShort(-32768) should write 0x8000 in the file
 
xi ruo
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks!
[ September 04, 2003: Message edited by: xi ruo ]
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!