зеркало из https://github.com/github/ruby.git
Fix packed_data.rdoc
This commit is contained in:
Родитель
19aa30d5d5
Коммит
4dc2e5a850
|
@ -109,7 +109,7 @@ for one element in the input or output array.
|
|||
s = [0, 1, -1].pack('c*') # => "\x00\x01\xFF"
|
||||
s.unpack('c*') # => [0, 1, -1]
|
||||
|
||||
- <tt>'C'</tt> - 8-bit signed integer
|
||||
- <tt>'C'</tt> - 8-bit unsigned integer
|
||||
(like C <tt>unsigned char</tt>):
|
||||
|
||||
[0, 1, 255].pack('C*') # => "\x00\x01\xFF"
|
||||
|
@ -233,7 +233,7 @@ for one element in the input or output array.
|
|||
# => [67305985, 4244504319]
|
||||
|
||||
==== Other \Integer Directives
|
||||
:
|
||||
|
||||
- <tt>'U'</tt> - UTF-8 character:
|
||||
|
||||
s = [4194304].pack('U*')
|
||||
|
|
Загрузка…
Ссылка в новой задаче