Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit521c26e

Browse files
committed
Clarify bit numbering in get_bit/set_bit etc. Per gripe from
Boszormenyi Zoltan.
1 parentd915a27 commit521c26e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 $ -->
22

33
<chapter id="functions">
44
<title>Functions and Operators</title>
@@ -2864,6 +2864,13 @@
28642864
</tgroup>
28652865
</table>
28662866

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>
28672874
</sect1>
28682875

28692876

@@ -2969,6 +2976,8 @@
29692976
strings:
29702977
<literal><function>get_bit</function></literal>,
29712978
<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.
29722981
</para>
29732982

29742983
<para>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp