summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-04-01 16:03:57 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2024-04-01 16:03:57 +0900
commit70645a5acdaa6028a897b828ceacd57efb9cf257 (patch)
treedc4a08ce1ea4331614f590dc4b0d86d409047911 /lib
parentacfef7c4f06696bf5f6d0ade06ddc32683a2f7bb (diff)
Write gzipped data as binary
Be careful when writing binary data on Windows. ``` $ ruby -e 's = Gem::Util.gzip("\x04\x08[\x05".b); p s.index("\n"); puts IO::Buffer.for(s).hexdump' 6 0x00000000 1f 8b 08 00 6c 3d 0a 66 00 03 63 e1 88 66 05 00 ....l=.f..c..f.. 0x00000010 e3 69 10 89 04 00 00 00 .i...... ```
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions