public CFMutableData append(ByteBuffer bytes) { long handle = getEffectiveAddress(bytes) + bytes.position(); append(handle, bytes.remaining()); return this; }
public CFMutableData append(byte[] bytes, int offset, int length) { checkOffsetAndCount(bytes.length, offset, length); if (length == 0) { return this; } append(VM.getArrayValuesAddress(bytes) + offset, length); return this; }
public static CFMutableData create(long capacity) { return create((CFAllocator)null, capacity); } public static CFMutableData createCopy(long capacity, CFData theData) {
public CFMutableData replace(CFRange range, ByteBuffer bytes) { long handle = getEffectiveAddress(bytes) + bytes.position(); replace(range, handle, bytes.remaining()); return this; }
public CFMutableData replace(CFRange range, byte[] bytes, int offset, int length) { checkOffsetAndCount(bytes.length, offset, length); replace(range, VM.getArrayValuesAddress(bytes) + offset, length); return this; } public CFMutableData delete(CFRange range) {
public ByteBuffer asByteBuffer() { return VM.newDirectByteBuffer(getMutableBytePtr(), getLength()); }
public CFMutableData replace(CFRange range, byte[] bytes) { return replace(range, bytes, 0, bytes.length); }
public long write(byte[] bytes, int offset, int length) { CFMutableData.checkOffsetAndCount(bytes.length, offset, length); if (length == 0) { return 0; } return write(VM.getArrayValuesAddress(bytes) + offset, length); }
public CFMutableData delete(CFRange range) { deleteBytes(range); return this; } /*<methods>*/
public static CFMutableData createCopy(long capacity, CFData theData) { return createCopy(null, capacity, theData); }
public CFMutableData append(byte[] bytes) { return append(bytes, 0, bytes.length); }
public CFMutableData replace(CFRange range, ByteBuffer bytes) { long handle = getEffectiveAddress(bytes) + bytes.position(); replace(range, handle, bytes.remaining()); return this; }
public CFMutableData replace(CFRange range, byte[] bytes, int offset, int length) { checkOffsetAndCount(bytes.length, offset, length); replace(range, VM.getArrayValuesAddress(bytes) + offset, length); return this; } public CFMutableData delete(CFRange range) {
public ByteBuffer asByteBuffer() { return VM.newDirectByteBuffer(getMutableBytePtr(), getLength()); }
public CFMutableData insert(long location, ByteBuffer bytes) { return replace(new CFRange(location, 0), bytes); }
public long read(byte[] bytes, int offset, int length) { CFMutableData.checkOffsetAndCount(bytes.length, offset, length); if (length == 0) { return 0; } return read(VM.getArrayValuesAddress(bytes) + offset, length); }
public CFMutableData delete(CFRange range) { deleteBytes(range); return this; } /*<methods>*/
public static CFMutableData createCopy(long capacity, CFData theData) { return createCopy(null, capacity, theData); }
public CFMutableData append(byte[] bytes) { return append(bytes, 0, bytes.length); }
public CFMutableData replace(CFRange range, ByteBuffer bytes) { long handle = getEffectiveAddress(bytes) + bytes.position(); replace(range, handle, bytes.remaining()); return this; }