Top "Pack" questions

A function in several scripting languages for packing data, creating a sequence of specifically ordered and aligned bytes, into a binary structure.

PHP Convert int to HEX

How can I get a similar function with pack/unpack (or other short function)? function getHEX($number) { switch($number) { case 0: $…

php hex pack
Java equivalent of Python's struct.pack?

Is there any function equivalent to Python's struct.pack in Java that allows me to pack and unpack values like …

java python struct pack
What is application's site of origin and when to use it

What is application's site of origin When to use it How is the build action of a resource file associated …

wpf xaml resources window pack
Printing out packing result from struct.pack

struct.pack returns packed result from input value. In [19]: pack("i",4) Out[19]: '\x04\x00\x00\x00' I'm trying …

python pack struct.pack
c++ Unpacking parameter pack from template arguments

How to achieve want I want below? The paramater pack I want to unpack is not in a function argument …

c++ parameters pack
Why does unpacking a struct result in a tuple?

After packing an integer in a Python struct, the unpacking results in a tuple even if it contains only one …

python struct tuples pack unpack
How to make an Ant task to sign and pack200 all my JAR files?

My JAR files must be signed for a webstart application. It would be nice to also have them packed to …

java ant compression code-signing pack
ruby pack and hex values

A nibble is four bits. That means there are 16 (2^4) possible values. That means a nibble corresponds to a single hex …

ruby decoding pack hex unpack
Converting hexadecimal string to binary

I am having following hexadecimal address : 2001:0db8:3c4d:0015:0000:0000:abcd:ef12. There are 8 blocks of hexadecimal digits, each block is 16 …

perl pack unpack