Store Strings

Parent Previous Next

Store Strings


Store strings are arbitrary-length buffers.  Typically they are used to store text.  Store strings consist of a header structure, which points to the actual data:


TStore_String_Header = packed record

                         Prefix : TPrefix ; // "STR"

                         Version : byte ;

                         Length : longword ;

                         Flags : longint ; // reserved

                         RefCount : longint ; // reserved

                         Data : int64 ;

                      end ;


Item

Description

Prefix

A prefix, indicating that this is a store string header: "S", "T", "R"

Version

Store string header version.  Should be 0.

Length

Length of the actual string data, in bytes.

Flags

Reserved for future use.  Should be 0.

RefCount

Reserved for future use.  Should be 0.

Data

Pointer to the store offset where the string contents are stored.