mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f65aac7a90
commit
709bff4f2b
1 changed files with 31 additions and 31 deletions
62
pack.c
62
pack.c
|
@ -350,36 +350,36 @@ static unsigned long utf8_to_uv(const char*,long*);
|
||||||
* Float | |
|
* Float | |
|
||||||
* Directive | | Meaning
|
* Directive | | Meaning
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* D, d | Float | Double-precision float, native format
|
* D, d | Float | double-precision float, native format
|
||||||
* F, f | Float | Single-precision float, native format
|
* F, f | Float | single-precision float, native format
|
||||||
* E | Float | Double-precision float, little-endian byte order
|
* E | Float | double-precision float, little-endian byte order
|
||||||
* e | Float | Single-precision float, little-endian byte order
|
* e | Float | single-precision float, little-endian byte order
|
||||||
* G | Float | Double-precision float, network (big-endian) byte order
|
* G | Float | double-precision float, network (big-endian) byte order
|
||||||
* g | Float | Single-precision float, network (big-endian) byte order
|
* g | Float | single-precision float, network (big-endian) byte order
|
||||||
*
|
*
|
||||||
* String | |
|
* String | |
|
||||||
* Directive | | Meaning
|
* Directive | | Meaning
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* A | String | arbitrary binary string (space padded, count is width)
|
* A | String | arbitrary binary string (space padded, count is width)
|
||||||
* a | String | arbitrary binary string (null padded, count is width)
|
* a | String | arbitrary binary string (null padded, count is width)
|
||||||
* Z | String | Same as ``a'', except that null is added with *
|
* Z | String | same as ``a'', except that null is added with *
|
||||||
* B | String | Bit string (MSB first)
|
* B | String | bit string (MSB first)
|
||||||
* b | String | Bit string (LSB first)
|
* b | String | bit string (LSB first)
|
||||||
* H | String | Hex string (high nibble first)
|
* H | String | hex string (high nibble first)
|
||||||
* h | String | Hex string (low nibble first)
|
* h | String | hex string (low nibble first)
|
||||||
* u | String | UU-encoded string
|
* u | String | UU-encoded string
|
||||||
* M | String | Quoted printable, MIME encoding (see RFC2045)
|
* M | String | quoted printable, MIME encoding (see RFC2045)
|
||||||
* m | String | Base64 encoded string (see RFC 2045, count is width)
|
* m | String | base64 encoded string (see RFC 2045, count is width)
|
||||||
* | | (if count is 0, no line feed are added, see RFC 4648)
|
* | | (if count is 0, no line feed are added, see RFC 4648)
|
||||||
* P | String | Pointer to a structure (fixed-length string)
|
* P | String | pointer to a structure (fixed-length string)
|
||||||
* p | String | Pointer to a null-terminated string
|
* p | String | pointer to a null-terminated string
|
||||||
*
|
*
|
||||||
* Misc. | |
|
* Misc. | |
|
||||||
* Directive | | Meaning
|
* Directive | | Meaning
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
* @ | --- | Moves to absolute position
|
* @ | --- | moves to absolute position
|
||||||
* X | --- | Back up a byte
|
* X | --- | back up a byte
|
||||||
* x | --- | Null byte
|
* x | --- | null byte
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
@ -1238,7 +1238,7 @@ infected_str_new(const char *ptr, long len, VALUE str)
|
||||||
* L | Integer | 32-bit unsigned integer, native endian (uint32_t)
|
* L | Integer | 32-bit unsigned integer, native endian (uint32_t)
|
||||||
* Q | Integer | 64-bit unsigned integer, native endian (uint64_t)
|
* Q | Integer | 64-bit unsigned integer, native endian (uint64_t)
|
||||||
* | |
|
* | |
|
||||||
* c | Integer | 8-bit signed integer (char)
|
* c | Integer | 8-bit signed integer (signed char)
|
||||||
* s | Integer | 16-bit signed integer, native endian (int16_t)
|
* s | Integer | 16-bit signed integer, native endian (int16_t)
|
||||||
* l | Integer | 32-bit signed integer, native endian (int32_t)
|
* l | Integer | 32-bit signed integer, native endian (int32_t)
|
||||||
* q | Integer | 64-bit signed integer, native endian (int64_t)
|
* q | Integer | 64-bit signed integer, native endian (int64_t)
|
||||||
|
@ -1262,12 +1262,12 @@ infected_str_new(const char *ptr, long len, VALUE str)
|
||||||
* Float | |
|
* Float | |
|
||||||
* Directive | Returns | Meaning
|
* Directive | Returns | Meaning
|
||||||
* --------------------------------------------------------------
|
* --------------------------------------------------------------
|
||||||
* d, D | Float | Double-precision float, native format
|
* D, d | Float | double-precision float, native format
|
||||||
* f, F | Float | Single-precision float, native format
|
* F, f | Float | single-precision float, native format
|
||||||
* E | Float | Double-precision float, little-endian byte order
|
* E | Float | double-precision float, little-endian byte order
|
||||||
* e | Float | Single-precision float, little-endian byte order
|
* e | Float | single-precision float, little-endian byte order
|
||||||
* G | Float | Double-precision float, network (big-endian) byte order
|
* G | Float | double-precision float, network (big-endian) byte order
|
||||||
* g | Float | Single-precision float, network (big-endian) byte order
|
* g | Float | single-precision float, network (big-endian) byte order
|
||||||
*
|
*
|
||||||
* String | |
|
* String | |
|
||||||
* Directive | Returns | Meaning
|
* Directive | Returns | Meaning
|
||||||
|
@ -1277,14 +1277,14 @@ infected_str_new(const char *ptr, long len, VALUE str)
|
||||||
* Z | String | null-terminated string
|
* Z | String | null-terminated string
|
||||||
* B | String | bit string (MSB first)
|
* B | String | bit string (MSB first)
|
||||||
* b | String | bit string (LSB first)
|
* b | String | bit string (LSB first)
|
||||||
* H | String | Hex string (high nibble first)
|
* H | String | hex string (high nibble first)
|
||||||
* h | String | Hex string (low nibble first)
|
* h | String | hex string (low nibble first)
|
||||||
* u | String | UU-encoded string
|
* u | String | UU-encoded string
|
||||||
* M | String | quoted-printable, MIME encoding (see RFC2045)
|
* M | String | quoted-printable, MIME encoding (see RFC2045)
|
||||||
* m | String | base64-encoded (RFC 2045) (default)
|
* m | String | base64 encoded string (RFC 2045) (default)
|
||||||
* | | base64-encoded (RFC 4648) if followed by 0
|
* | | base64 encoded string (RFC 4648) if followed by 0
|
||||||
* P | String | Pointer to a structure (fixed-length string)
|
* P | String | pointer to a structure (fixed-length string)
|
||||||
* p | String | Pointer to a null-terminated string
|
* p | String | pointer to a null-terminated string
|
||||||
*
|
*
|
||||||
* Misc. | |
|
* Misc. | |
|
||||||
* Directive | Returns | Meaning
|
* Directive | Returns | Meaning
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue