This commit is contained in:
@@ -7,6 +7,7 @@ package org.redkale.util;
|
||||
|
||||
import java.nio.*;
|
||||
import java.nio.charset.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 简单的byte[]操作类。
|
||||
@@ -70,6 +71,10 @@ public final class ByteArray {
|
||||
return content;
|
||||
}
|
||||
|
||||
public byte[] getBytes() {
|
||||
return Arrays.copyOf(content, count);
|
||||
}
|
||||
|
||||
public int find(int offset, char value) {
|
||||
return find(offset, (byte) value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user