Debian Codegraph @

doc/kate-format-metadata.doc

raw
1 /* Copyright (C) 2009-2011 Vincent Penquerc'h.
2 This file is part of the Kate codec library.
3 Written by Vincent Penquerc'h.
4
5 Use, distribution and reproduction of this library is governed
6 by a BSD style source license included with this source in the
7 file 'COPYING'. Please read these terms before distributing. */
8
9
10 /**
11
12 \page format_metadata Format - metadata
13
14 A metadata definition consists of:
15
16 \li a bit, being 0 if the metadata set is empty, 1 otherwise.
17
18 Then, if the set is not empty:
19
20 \li a \ref format_32v "variable length integer" representing the number of metadata pairs present in the set.
21
22 Then, for that number:
23
24 \li a \ref format_32v "variable length integer" representing the number of bytes in the tag name.
25 \li that same number of bytes, representing the tag name. The typical C string terminating NUL is not included.
26 \li a \ref format_32v "variable length integer" representing the number of bytes in the value.
27 \li that same number of bytes, representing the value. This value may be any stream of arbitrary data, but is
28 encouraged to be UTF-8, though this is not mandatory and should not be assumed. No terminating NUL.
29 Note that a terminating NUL might not make sense in the first place if the metadata contents are binary.
30 \li a \ref format_warp "warp".
31
32 Then, the data for this metadata pair ends.
33
34 Next, we have a \ref format_warp "warp".
35
36 Next, the data ends.
37
38 */
39