perl.pack.unpack.printf.cheat.sheet.doc


文档分类:中学教育 | 页数:约2页 举报非法文档有奖
1/2
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/2
文档列表 文档介绍
Perl pack/unpack Summary
Usage:
pack TEMPLATE, LIST
unpack TEMPLATE, EXPR
Template parameter summary:
Parameter
Description
a
A string with arbitrary binary data, will be null padded.
A
A text (ASCII) string, will be space padded.
Z
A null terminated (ASCIZ) string, will be null padded.
b
A bit string (ascending bit order inside each byte, like vec()).
B
A bit string (descending bit order inside each byte).
h
A hex string (low nibble first).
H
A hex string (high nibble first).
c
A signed char value.
C
An unsigned char value. Only does bytes. See U for Unicode.
s
A signed short value.
S
An unsigned short value. (This 'short' is _exactly_ 16 bits, which may differ from what a local piler calls 'short'. If you want native-length shorts, use the '!' suffix.)
i
A signed integer value.
I
An unsigned integer value. (This 'integer' is _at_least_ 32 bits wide. Its exact size depends on what a local piler calls 'int', and may even be larger than the 'long' described in the next item.)
l
A signed long value.
L
An unsigned long value. (This 'long' is _exactly_ 32 bits, which may differ from what a local piler calls 'long'. If you want native-length longs, use the '!' suffix.)
n
An unsigned short in "network" (big-endian) order.
N
An unsigned long in "network" (big-endian) order.
v
An unsigned short in "VAX" (little-endian) order.
V
An unsigned lo

perl.pack.unpack.printf.cheat.sheet 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数2
  • 收藏数0 收藏
  • 顶次数0
  • 上传人fy3986758
  • 文件大小0 KB
  • 时间2015-06-04