Convert a DataArray to a Uint8Array
The DataArray.
The result of the conversion
Convert a byte string to Uint8Array. THIS DOES NOT DECODE UTF8!!!
The DataArray.
The result of the conversion
Concatenate blocks
The result of concatenation of those blocks
Copy in data from ins
to b
Where to copy in
What to copy
The offset in b to copy
Convert a DataArray to a DataView
The DataArray.
The result of the conversion
Do something with a dataview in a smaller form factor.
The size of the dataview needed.
A function that takes our dataview and puts something in it
The backing buffer of the dataview.
Shows an error on the standard error.
Arguments to the format.
Shows an error on the standard error and exits.
Arguments to the format.
Flips a DataArray
The data array to be flipped
The result of the conversion
A nice formatter optimized with colors and everything.
How to use? Make your format string have %
What is that something? % - just print out %
x - print out hex-encoded int.
p - print out hex-encoded long (bigint).
o - print out an object.
d - print out an int.
l - print out a long.
b - print out a boolean
The format string.
Format string values.
Formatted string.
Gets the main entrypoint to the program. This does NOT work on windows and is experimental on darwin.
TODO: Make denopwn CLI tool that enables this to work.
Convert a DataArray to a hex string
The result of the conversion
Shows an information on the standard output.
The format (fmt)
Arguments to the format.
Convert an Int to number
the Int
The result of the conversion
Load a file as specified by a CLI flag.
The name of the flag.
The contents
Convert an Int to a bigint
the Int
The result of the conversion
Get an offset view to a DataArray (this is not a reference)
The view to return an offset into
The start of the view.
(optional) the amount of bytes to include. If not provided all the bytes will be included
The offset view
A function for getting a single stack frame from outside of denopwn.
The first stack trace outside of denopwn
Directly repack the buffer. struct
The definition of the structure
A callback that will be called for every chunk of the output
The unpacked data
Gets the path to file as specified by a CLI flag.
The name of the flag.
The path
Prompt the user for data
The prompt (optional, defaults to '> ', is made bold-red)
This function rounds n
to the nearest to
. Useful for paging stuff.
The result of rounding.
Find an index in a searchable
Generate searchable string
The length of a searchable
A function for getting the entire stack trace by file names
The stack trace.
Convert a DataArray to a string.
The DataArray.
The result of the conversion
A convenience function to automatically load a structure from a file in the same directory as main
(must be local) called struct.ts.
The name of the structure
(optional) set the main entrypoint.
Convert a hex string to an Uint8Array
The hex string
The result of the conversion
Directly unpack the buffer. struct
The definition of the structure
the binary to be unpacked
an object with a single property, ret, which is used for the actual value.
The amount of bytes used.
Shows a warning on the standard error.
Arguments to the format.
Exports utilities for dealing with Process
Spawn a local process
Processes invocation as you would type into bash(1)
(optional) Extra options to pass to Deno.run
The process
Connect to a remote host in order to connect to a process
The host
Port on which the connection should be made
The process
Convenience functions for radare2/rabin2
Asks rabin2 about strings.
How should we get the strings?
Path to the binary with the strings
Strings
An intager (bigint or number)