From 10f7f3e4fd995f1abf1aaa07d2e54a3e29f82033 Mon Sep 17 00:00:00 2001 From: RedKale <22250530@qq.com> Date: Tue, 23 Feb 2016 10:58:46 +0800 Subject: [PATCH] --- src/org/redkale/util/ByteArray.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/org/redkale/util/ByteArray.java b/src/org/redkale/util/ByteArray.java index 9707732fb..d45635470 100644 --- a/src/org/redkale/util/ByteArray.java +++ b/src/org/redkale/util/ByteArray.java @@ -11,7 +11,9 @@ import java.nio.charset.*; /** * 简单的byte[]操作类。 * - *
详情见: http://www.redkale.org + *
+ * 详情见: http://www.redkale.org + * * @author zhangjx */ public final class ByteArray { @@ -52,6 +54,10 @@ public final class ByteArray { return count; } + public byte get(int index) { + return content[index]; + } + public void write(byte[] buf) { System.arraycopy(this.content, 0, buf, 0, count); }