EldoS
 Table of Contents >  How to ... (advanced questions) >  Use tags to store supplementary information about the file
Navigation
Web site
Support
Table Of Contents
Send comments on this topic

Use tags to store supplementary information about the file

Often you need to store some relatively small amount of supplementary information about the file. This can be author name, keywords or something similar. To store this information, SolFS supports file tags.

Each tag is identified by it's integer ID which must be in range between 0x8000 (32768 decimal) and 0xCFFF (53247 decimal). The size of the tag can be from 0 bytes (empty tag) to PageSize - 32 bytes, where PageSize is the size of the page of the storage.

To manipulate tags use the following methods of SolFSStorage class:

  • to check tag presense and size of it's data, use GetFileTagInfo() method;
  • to add a tag to the file, use SetFileTag() method;
  • to read tag data, use GetFileTag() method;
  • to remove the tag use DeleteFileTag() method

Contact Us | Subscribe | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2008, EldoS Corporation