1
0
mirror of https://github.com/fumiama/base16384.git synced 2026-06-06 02:30:31 +08:00
Files
base16384/base16384.1
源文雨 65512e2dcd sync (#22)
* fix typo

* fix: 32bit be decoding

* chore: add Rust alternative (#18)

* Update C# Link (#20)

* 尝试修复#19

- 移除未使用的参数 int blen
- 完善文档、注释
- 完善文件名错误检测
- 修复 encbuf, decbuf 处理逻辑

* fix: disable mmap in windows

* fix: encode bufsz (#19)

* v2.2.5

* Update Swift Link (#21)

---------

Co-authored-by: 忘忧北萱草 <wybxc@qq.com>
Co-authored-by: LC <64722907+lc6464@users.noreply.github.com>
Co-authored-by: oboard <oboard@outlook.com>
2024-03-26 01:52:27 +09:00

96 lines
2.2 KiB
Groff

.TH BASE16384 1 "26 August 2023" "GNU" "User Commands"
.SH NAME
base16384 \- Encode binary files to printable utf16be
.SH SYNOPSIS
.B base16384
-[e|d|t] <\fIinputfile\fR> <\fIoutputfile\fR>
.SH DESCRIPTION
.LP
There are
.B 16384
Chinese characters ( from
.B 4E00
to
.B 8DFF
) as the
.I "alphabet"
, just like what base64 did. If length of the data has a remainder after mod 7, an unicode Chinese character
.B 3Dxx
will be appended to present it with
.I xx
ranging from
.I 01
to
.I 06
.
.SH OPTIONS
.sp 1
.TP 0.5i
\fB\-e\fR
Read data from \fIinputfile\fR and encode them into \fIoutputfile\fR.
.TP 0.5i
\fB\-d\fR
Read data from \fIinputfile\fR and decode them into \fIoutputfile\fR.
.TP 0.5i
\fB\-t\fR
Show spend time.
.TP 0.5i
\fBinputfile\fR
An absolute or relative file path. Specially, pass - to read from stdin.
.TP 0.5i
\fBoutputfile\fR
An absolute or relative file path. Specially, pass - to write to stdout.
.SH "EXIT STATUS"
.TP 0.5i
\fB0\fR
Exit on success.
.TP 0.5i
\fB1\fR
Get file size error.
.TP 0.5i
\fB2\fR
Fopen output file error.
.TP 0.5i
\fB3\fR
Fopen input file error.
.TP 0.5i
\fB4\fR
Write file error.
.TP 0.5i
\fB5\fR
Open input file error.
.TP 0.5i
\fB6\fR
Map input file error.
.TP 0.5i
\fB7\fR
Write file error in mmap.
.TP 0.5i
\fB8\fR
Invalid input/output filename.
.SH "SEE ALSO"
https://github.com/fumiama/base16384
.SH BUGS
There are currently no known bugs in this application. If you have found them, please contact the
.B author
on github.
.SH AUTHOR
This manual page contributed by Fumiama Minamoto.
.SH "COPYRIGHT"
Copyright \(co 2022-2023, Fumiama Minamoto
This file is part of
.IR "base16384" .
.LP
Base16384 is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation; either version 3 of the License, or (at your option) any later
version.
.LP
Base16384 is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
.LP
You should have received a copy of the GNU General Public License along with
this program. If not, see
.IR http://www.gnu.org/licenses/ .