TLV: Difference between revisions
Jump to navigation
Jump to search
(Created page with " <!-- Type–length–value is a way of laying out a file that contains many things, namely as a series of chunks that are * type of the next chunk * length of that data that follows * that data This is * fast to seek through :: in that you can seek forward that length, and ''know'' you are on the next chunk. * extensible :: in the sense that any reader, faced with a chunk type they do not know, can just ignore and skip it It puts memory of its rules in user.rules...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{stub}} | |||
Type–length–value is a way of laying out a file | Type–length–value is a way of laying out a file/bytestream to contains multiple things, | ||
namely as a series of chunks that are | namely as a series of chunks that are | ||
* type of the | * type of the this chunk | ||
* length of that data that follows | * length of that data that follows | ||
* that data | * that data | ||
Line 11: | Line 11: | ||
This is | This is | ||
* | * fastish to seek through even ''without'' an index | ||
:: in that you can seek forward that length, and ''know'' you are on the next chunk. | :: in that you can seek forward that length, and ''know'' you are on the next chunk. | ||
Line 18: | Line 18: | ||
The best-known implementation example of this idea | |||
may be [[Interchange File Format]] (IFF), e.g. as used in WAV files and others, | |||
and ''broadly''-but-not-always-strictly followed in JPEG, TIFF (not IFF), | |||
and ''broadly''-but-not-always-strictly followed in JPEG, TIFF (not IFF), | |||
Latest revision as of 16:47, 28 February 2024
✎ This article/section is a stub — some half-sorted notes, not necessarily checked, not necessarily correct. Feel free to ignore, or tell me about it.
Type–length–value is a way of laying out a file/bytestream to contains multiple things,
namely as a series of chunks that are
- type of the this chunk
- length of that data that follows
- that data
This is
- fastish to seek through even without an index
- in that you can seek forward that length, and know you are on the next chunk.
- extensible
- in the sense that any reader, faced with a chunk type they do not know, can just ignore and skip it
The best-known implementation example of this idea may be Interchange File Format (IFF), e.g. as used in WAV files and others,
and broadly-but-not-always-strictly followed in JPEG, TIFF (not IFF),