|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.527 2010/08/13 18:36:23 tgl Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.528 2010/08/15 21:26:36 tgl Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="functions">
|
4 | 4 | <title>Functions and Operators</title>
|
|
2864 | 2864 | </tgroup>
|
2865 | 2865 | </table>
|
2866 | 2866 |
|
| 2867 | + <para> |
| 2868 | + <function>get_byte</> and <function>set_byte</> number the first byte |
| 2869 | + of a binary string as byte 0. |
| 2870 | + <function>get_bit</> and <function>set_bit</> number bits from the |
| 2871 | + right within each byte; for example bit 0 is the least significant bit of |
| 2872 | + the first byte, and bit 15 is the most significant bit of the second byte. |
| 2873 | + </para> |
2867 | 2874 | </sect1>
|
2868 | 2875 |
|
2869 | 2876 |
|
|
2969 | 2976 | strings:
|
2970 | 2977 | <literal><function>get_bit</function></literal>,
|
2971 | 2978 | <literal><function>set_bit</function></literal>.
|
| 2979 | + When working with a bit string, these functions number the first |
| 2980 | + (leftmost) bit of the string as bit 0. |
2972 | 2981 | </para>
|
2973 | 2982 |
|
2974 | 2983 | <para>
|
|