https://github.com/fengzhizi715/bytekit
Java 字节操作的工具库(不是字节码的工具库)
https://github.com/fengzhizi715/bytekit
byte-array bytebuffer bytes deepcopy deserialize encryption mmap serialize transformer
Last synced: 5 days ago
JSON representation
Java 字节操作的工具库(不是字节码的工具库)
- Host: GitHub
- URL: https://github.com/fengzhizi715/bytekit
- Owner: fengzhizi715
- License: apache-2.0
- Created: 2018-11-19T03:59:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-10T08:00:55.000Z (over 3 years ago)
- Last Synced: 2025-04-01T10:41:32.933Z (25 days ago)
- Topics: byte-array, bytebuffer, bytes, deepcopy, deserialize, encryption, mmap, serialize, transformer
- Language: Java
- Homepage:
- Size: 158 KB
- Stars: 40
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bytekit
[](http://www.weibo.com/fengzhizi715)
[](https://www.apache.org/licenses/LICENSE-2.0.html)
[](https://jitpack.io/#fengzhizi715/bytekit)# 功能特点:
* 支持多种方式创建 Bytes:byte数组、字符串、File、InputStream
* 支持字节数组、ByteBuffer 的操作
* 支持 Immutable 对象:ByteArrayBytes、ByteBufferBytes
* 支持 Transformer: 内置 copy、contact、reverse、xor、and、or、not,也支持自定义 Transformer
* 支持 Hash: 内置 md5、sha1、sha256
* 支持 Hmac加密: 内置 HmacMD5、HmacSHA1、HmacSHA256
* 支持转换成十六进制字符串、十六进制字符串转换成二进制字节数组
* 支持对象的序列化、反序列化、深拷贝
* 支持将 Bytes 写入到输出流、文件中
* 支持 mmap 常用读写操作:readByte/writeByte、readBytes/writeBytes、readInt/writeInt、readLong/writeLong、readDouble/writeDouble、readObject/writeObject> core、mmap 模块不依赖于任何第三方库
# 最新版本
模块|最新版本
---|:-------------:
core|[](https://jitpack.io/#fengzhizi715/bytekit)|
mmap|[](https://jitpack.io/#fengzhizi715/bytekit)|# 下载:
bytekit-core
```groovy
implementation 'com.github.fengzhizi715.bytekit:core:v1.3.0'
```bytekit-mmap
```groovy
implementation 'com.github.fengzhizi715.bytekit:mmap:v1.3.0'
```详见:https://www.jianshu.com/p/411462b481b7
联系方式
===Wechat:fengzhizi715
> Java与Android技术栈:每周更新推送原创技术文章,欢迎扫描下方的公众号二维码并关注,期待与您的共同成长和进步。

License
-------Copyright (C) 2017 - present, Tony Shen.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.