Top "Unpack" questions

A function in several scripting languages for unpacking binary data into native types for the language in question.

Python-like unpacking in JavaScript

I have the following string output_string = "[10, 10, [1,2,3,4,5], [10,20,30,40,50]]" Then I JSON.parse it my_args = JSON.parse(output_string) How do …

javascript unpack
python struct unpack into a dict

struct.unpack will unpack data into a tuple. Is there an equivalent that will store data into a dict instead? …

python unpack
How to create a .BAT file to download and unpack a zip file?

How to create a .BAT file to download and unpack a zip file from HTTP server? We have links like …

windows http batch-file zip unpack
Write and read Datetime to binary format in Python

I want to store a list of datetimes in a binary file in Python. EDIT: by "binary" I mean the …

python datetime binary timestamp unpack
Decoding packed data into a structure

What would the best way of unpacking a python string into fields I have data received from a tcp socket, …

python string unpack
How to convert UTF8 byte arrays to string in lua

I have a table like this table = {57,55,0,15,-25,139,130,-23,173,148,-24,136,158} it is utf8 encoded byte array by php unpack function …

utf-8 lua bytearray unpack
How do I unpack various form of integers in a byte buffer in Golang?

I need to extract various fields in a byte buffer. I came up with this solution: func (fs *FileSystem) readSB() { // …

buffer go unpack
How to return an unpacked list in Python?

I'm trying to do something like this in python: def f(): b = ['c', 8] return 1, 2, b*, 3 Where I want f to …

python return tuples unpack
Split binary data into byte array in Perl

I basically wanted to convert a binary string to an array/list of bytes (so as to allow indexing, and …

perl split binary-data unpack
How to unpack all rar archives in all subfolders of a folder and then delete the archives?

I want to unpack all files in some subfolders which are in a main folder, delete the xxx.rar files …

batch-file unpack rar winrar