[hfs-user] Interpretation needed

Entwicklung entwicklung@whengenibk.de
Thu, 24 Jan 2002 11:28:00 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C1A4CA.2E4B4B40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

    The HFS+ specs mention:
"
    UInt32 attributes;
 The following constants define the various bits that may be set in the =
attributes field of the header record.

enum{
kBTBadCloseMask =3D 0x00000001,
kBTBigKeysMask=3D0x00000002,
kBTVariableIndexKeysMask=3D0x00000004
}
                                                                 "


In my case I need to set both kBTBigkeysMask and =
kBTVariableIndexKeysMask. What is meant by bits 1,2 and 4?

 Do I set attributes =3D 6 (assuming 2 and 4 refer to positions 1(2^1) =
and 2(2^2))=20

OR

 attributes =3D 20 (binary 10100) starting to count from 0 (LSB) ?

OR attributes =3D 10 (binary 1010) starting to count from 1 (LSB) ?

Can somebody please tell me how this is to be interpreted?
Regards,
Nandini Hengen



------=_NextPart_000_0007_01C1A4CA.2E4B4B40
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; The HFS+ specs=20
mention:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; UInt32 =
attributes;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;The following constants define =
the various=20
bits that may be set in the attributes field of the header =
record.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>enum{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>kBTBadCloseMask =3D =
0x00000001,</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>kBTBigKeysMask=3D0x00000002,</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>kBTVariableIndexKeysMask=3D0x00000004</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>In my case I need to set both =
kBTBigkeysMask and=20
kBTVariableIndexKeysMask. </FONT><FONT face=3DArial size=3D2>What is =
meant by bits=20
1,2 and 4?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;Do I set attributes =3D 6 =
(assuming 2 and 4=20
refer to positions 1(2^1) and 2(2^2)) </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>OR</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;attributes =3D&nbsp;20 (binary =
10100) starting=20
to count from 0 (LSB) ?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>OR attributes =3D 10 (binary 1010) =
starting to count=20
from 1 (LSB) ?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can somebody please tell me how this is =
to be=20
interpreted?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Nandini Hengen</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0007_01C1A4CA.2E4B4B40--