UDF 2.00 - OSTA - Optical Storage Technology Association
UDF 2.00 - OSTA - Optical Storage Technology Association
UDF 2.00 - OSTA - Optical Storage Technology Association
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
The value of the <strong>OSTA</strong> Compressed Unicode d-character interpreted as a Uint16<br />
defines the value of the corresponding d-character in the Unicode 2.0 standard.<br />
Refer to appendix on <strong>OSTA</strong> Compressed Unicode for sample C source code to<br />
convert between <strong>OSTA</strong> Compressed Unicode and standard Unicode 2.0.<br />
The Unicode byte-order marks, #FEFF and #FFFE, shall not be used.<br />
A Compression ID of 254 or 255 shall indicate that the following 4 or 8 bytes<br />
respectively contain a binary value unique to the context. E.g. File Identifiers may<br />
use a Compression ID of 254 or 255 and a byte offset of the FID within the<br />
directory to create unique directory entries when the Deleted bit is set.<br />
2.1.2 <strong>OSTA</strong> CS0 Charspec<br />
struct charspec { /* ECMA 167 1/7.2.1 */<br />
Uint8<br />
CharacterSetType;<br />
byte<br />
CharacterSetInfo[63];<br />
}<br />
The CharacterSetType field shall have the value of 0 to indicate the CS0 coded<br />
character set.<br />
The CharacterSetInfo field shall contain the following byte values with the<br />
remainder of the field set to a value of 0.<br />
#4F, #53, #54, #41, #20, #43, #6F, #6D, #70, #72, #65, #73, #73, #65,<br />
#64, #20, #55, #6E, #69, #63, #6F, #64, #65<br />
The above byte values represent the following ASCII string:<br />
“<strong>OSTA</strong> Compressed Unicode”<br />
2.1.3 Dstrings<br />
The ECMA 167 standard, as well as this document, has normally defined byte positions<br />
relative to 0. In section 7.2.12 of ECMA 167, dstrings are defined in terms of being<br />
relative to 1. Since this offers an opportunity for confusion, the following shows what the<br />
definition would be if described relative to 0.<br />
7.2.12 Fixed-length character fields<br />
A dstring of length n is a field of n bytes where d-characters (1/7.2) are recorded. The number of<br />
bytes used to record the characters shall be recorded as a Uint8 (1/7.1.1) in byte n-1, where n is<br />
the length of the field. The characters shall be recorded starting with the first byte of the field,<br />
and any remaining byte positions after the characters up until byte n-2 inclusive shall be set to<br />
#00.<br />
<strong>UDF</strong> <strong>2.00</strong> April 3, 1998<br />
10