converters/ascii2binary 2.14_2 FreeBSD
Convert between textual representations of numbers and binary
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- GPLv3
- Categories
- converters
- Package size
- 28.1 KiB, 73.7 KiB installed
Description
These programs convert between textual and binary representations of numbers. ascii2binary reads input consisting of textual representations of numbers separated by whitespace and produces as output the binary equivalents. The type and precision of the binary output is selected using command line flags.
binary2ascii reads input consisting of binary numbers and converts them to their textual representation. Command line flags specify the type and size of the binary numbers and provide control over the format of the output. Unsigned integers may be written out in binary, octal, decimal, or hexadecimal. Signed integers may be written out only in binary or decimal. Floating point numbers may be written out only decimal, either in standard or scientific notation. (If you want to examine the binary representation of floating point numbers, just treat the input as a sequence of unsigned characters.)
The two programs are useful for generating test data, for inspecting binary files, and for interfacing programs that generate textual output to programs that require binary input and conversely. They can also be useful when it is desired to reformat numbers.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | converters/ascii2binary | 2.14_2 |
| DragonFly | converters/ascii2binary | 2.14_2 |
Install
Binary package:
pkg install ascii2binary
From the ports tree:
cd /usr/ports/converters/ascii2binary/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ascii2binary>0:converters/ascii2binary
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.14_2 | 2.14_2 | 2.14_1 | 2.14_2 | 2.14_2 |
| FreeBSD:14:quarterly | 2.14_2 | 2.14_2 | n/a | 2.14_2 | 2.14_2 |
| FreeBSD:15:latest | 2.14_2 | 2.14_2 | n/a | 2.14_2 | 2.14_2 |
| FreeBSD:15:quarterly | 2.14_2 | 2.14_2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.14_2 | 2.14_2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 2
Run dependencies 2
Required by 1
Configuration
No options to configure.
- USES
- gettext-runtime localbase:ldflags tar:bzip2
- Service scripts
- none
Message after installing
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| ascii2binary-2.14.tar.bz2 | 83091 | 2635184f3281c8871298be037dbba2a294b97e30784b0374d2ebdeda58778935 |
Master sites 1
- http://billposer.org/Software/Downloads/
Commit history 0
No commits in the history this site was built from.