Bytekit Save

Java 字节操作的工具库(不是字节码的工具库)

Project README

bytekit

@Tony沈哲 on weibo License

功能特点:

  • 支持多种方式创建 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
mmap

下载:

bytekit-core

implementation 'com.github.fengzhizi715.bytekit:core:v1.3.0'

bytekit-mmap

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 at

   http://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.
Open Source Agenda is not affiliated with "Bytekit" Project. README Source: fengzhizi715/bytekit
Stars
40
Open Issues
0
Last Commit
2 years ago
License

Open Source Agenda Badge

Open Source Agenda Rating