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); }