<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4943.400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>That's the bitwise shift-left operator. So, 0
shifted left 1 bit is still zero, 1 shifted left 1 bit is 2. 1 shifted left 30
bits would be (hex) 40000000.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Brian</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ross@stationplaylist.com href="mailto:ross@stationplaylist.com">Ross
Levis</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@ns3.123.co.nz
href="mailto:delphi@ns3.123.co.nz">NZ Borland Developers Group - Delphi
List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, July 13, 2006 6:44
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [DUG] C code help</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>I have very few clues when it comes to
C++. Particularly with things like this which appear to defy
logic! Can some one convert this to Delphi for me
please.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#define
TAG_FIELD_FLAG_DATA_TYPE_TEXT_UTF8 (0 <<
1)<BR>#define
TAG_FIELD_FLAG_DATA_TYPE_BINARY
(1 << 1)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BLOCKQUOTE>
<DIV><FONT face=Arial size=2>So TAG_FIELD_FLAG_DATA_TYPE is a one-bit flag
stored in the 2nd-rightmost bit of the word, and its possible values are
TEXT_UTF8 (value 0) and BINARY (value 1).</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#define
APE_TAG_FLAG_CONTAINS_FOOTER
(1 << 30)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Or is it this?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>const</FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2> TAG_FIELD_FLAG_DATA_TYPE_TEXT_UTF8 = 0;
<DIV><FONT face=Arial size=2> TAG_FIELD_FLAG_DATA_TYPE_BINARY =
1;</FONT></DIV>
<DIV> APE_TAG_FLAG_CONTAINS_FOOTER = 30;</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV>Ross.</DIV></FONT></DIV></FONT></DIV>
<P></P><FONT face=Arial size=2></FONT>
<HR>
<P><FONT face=Arial size=2></FONT></P></BLOCKQUOTE></BODY></HTML>