diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-18 03:59:53 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-18 03:59:53 +0000 |
commit | b2556b548104edc594b10af20982fa23bc3ce928 (patch) | |
tree | 4cd95ce807653b8df56307faef2c8cfb98c9da07 /pack.c | |
parent | 35388369dc5343d71794598edb79593f13cbc06b (diff) | |
download | ruby-b2556b548104edc594b10af20982fa23bc3ce928.tar.gz |
* pack.c (pack_pack): refine the document. [ruby-dev:42397]
(pack_unpack): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r-- | pack.c | 56 |
1 files changed, 26 insertions, 30 deletions
@@ -338,37 +338,19 @@ static unsigned long utf8_to_uv(const char*,long*); * i, i_, i! | Integer | signed int, native endian * l_, l! | Integer | signed long, native endian * | | - * S> | Integer | 16-bit unsigned, big endian - * L> | Integer | 32-bit unsigned, big endian - * Q> | Integer | 64-bit unsigned, big endian - * s> | Integer | 16-bit signed, big endian - * l> | Integer | 32-bit signed, big endian - * q> | Integer | 64-bit signed, big endian + * S> L> Q> | Integer | same as the directives without ">" except + * s> l> q> | | big endian + * S!> I!> | | (available since Ruby 1.9.3) + * L!> Q!> | | "S>" is same as "n" + * s!> i!> | | "L>" is same as "N" + * l!> q!> | | * | | - * S< | Integer | 16-bit unsigned, little endian - * L< | Integer | 32-bit unsigned, little endian - * Q< | Integer | 64-bit unsigned, little endian - * s< | Integer | 16-bit signed, little endian - * l< | Integer | 32-bit signed, little endian - * q< | Integer | 64-bit signed, little endian - * | | - * S!> | Integer | unsigned short, big endian - * I!> | Integer | unsigned int, big endian - * L!> | Integer | unsigned long, big endian - * Q!> | Integer | unsigned long long, big endian - * s!> | Integer | signed, big endian - * i!> | Integer | signed int, big endian - * l!> | Integer | signed, big endian - * q!> | Integer | signed, big endian - * | | - * S!< | Integer | unsigned short, little endian - * I!< | Integer | unsigned int, little endian - * L!< | Integer | unsigned long, little endian - * Q!< | Integer | unsigned long long, little endian - * s!< | Integer | signed short, little endian - * i!< | Integer | signed int, little endian - * l!< | Integer | signed long, little endian - * q!< | Integer | signed long long, little endian + * S< L< Q< | Integer | same as the directives without "<" except + * s< l< q< | | little endian + * S!< I!< | | (available since Ruby 1.9.3) + * L!< Q!< | | "S<" is same as "v" + * s!< i!< | | "L<" is same as "V" + * l!< q!< | | * | | * n | Integer | 16-bit unsigned, network (big-endian) byte order * N | Integer | 32-bit unsigned, network (big-endian) byte order @@ -1308,6 +1290,20 @@ infected_str_new(const char *ptr, long len, VALUE str) * i, i_, i! | Integer | signed int, native endian * l_, l! | Integer | signed long, native endian * | | + * S> L> Q> | Integer | same as the directives without ">" except + * s> l> q> | | big endian + * S!> I!> | | (available since Ruby 1.9.3) + * L!> Q!> | | "S>" is same as "n" + * s!> i!> | | "L>" is same as "N" + * l!> q!> | | + * | | + * S< L< Q< | Integer | same as the directives without "<" except + * s< l< q< | | little endian + * S!< I!< | | (available since Ruby 1.9.3) + * L!< Q!< | | "S<" is same as "v" + * s!< i!< | | "L<" is same as "V" + * l!< q!< | | + * | | * n | Integer | 16-bit unsigned, network (big-endian) byte order * N | Integer | 32-bit unsigned, network (big-endian) byte order * v | Integer | 16-bit unsigned, VAX (little-endian) byte order |