作者:人对方啥地位 | 来源:互联网 | 2023-09-18 10:44
本文整理了Java中com.android.dx.util.ByteArray.getBytes()
方法的一些代码示例,展示了ByteArray.getBytes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteArray.getBytes()
方法的具体详情如下:
包路径:com.android.dx.util.ByteArray
类名称:ByteArray
方法名:getBytes
ByteArray.getBytes介绍
[英]Copies the contents of this instance into the given raw byte[] at the given offset. The given array must be large enough.
[中]将此实例的内容复制到给定偏移量处的给定原始字节[]。给定的数组必须足够大。
代码示例
代码示例来源:origin: nikita36078/J2ME-Loader
/** {@inheritDoc} */
@Override
public void write(ByteArray bytes) {
int blen = bytes.size();
int writeAt = cursor;
int end = writeAt + blen;
if (stretchy) {
ensureCapacity(end);
} else if (end > data.length) {
throwBounds();
return;
}
bytes.getBytes(data, writeAt);
cursor = end;
}
代码示例来源:origin: dragome/dragome-sdk
/** {@inheritDoc} */
public void write(ByteArray bytes) {
int blen = bytes.size();
int writeAt = cursor;
int end = writeAt + blen;
if (stretchy) {
ensureCapacity(end);
} else if (end > data.length) {
throwBounds();
return;
}
bytes.getBytes(data, writeAt);
cursor = end;
}
代码示例来源:origin: com.android/dx
/** {@inheritDoc} */
public void write(ByteArray bytes) {
int blen = bytes.size();
int writeAt = cursor;
int end = writeAt + blen;
if (stretchy) {
ensureCapacity(end);
} else if (end > data.length) {
throwBounds();
return;
}
bytes.getBytes(data, writeAt);
cursor = end;
}
代码示例来源:origin: gdpancheng/LoonAndroid3
/** {@inheritDoc} */
public void write(ByteArray bytes) {
int blen = bytes.size();
int writeAt = cursor;
int end = writeAt + blen;
if (stretchy) {
ensureCapacity(end);
} else if (end > data.length) {
throwBounds();
return;
}
bytes.getBytes(data, writeAt);
cursor = end;
}
代码示例来源:origin: com.android.tools.build/builder
/** {@inheritDoc} */
public void write(ByteArray bytes) {
int blen = bytes.size();
int writeAt = cursor;
int end = writeAt + blen;
if (stretchy) {
ensureCapacity(end);
} else if (end > data.length) {
throwBounds();
return;
}
bytes.getBytes(data, writeAt);
cursor = end;
}
代码示例来源:origin: com.google.android.tools/dx
/** {@inheritDoc} */
public void write(ByteArray bytes) {
int blen = bytes.size();
int writeAt = cursor;
int end = writeAt + blen;
if (stretchy) {
ensureCapacity(end);
} else if (end > data.length) {
throwBounds();
return;
}
bytes.getBytes(data, writeAt);
cursor = end;
}
代码示例来源:origin: com.google.dexmaker/dexmaker-dx
/** {@inheritDoc} */
public void write(ByteArray bytes) {
int blen = bytes.size();
int writeAt = cursor;
int end = writeAt + blen;
if (stretchy) {
ensureCapacity(end);
} else if (end > data.length) {
throwBounds();
return;
}
bytes.getBytes(data, writeAt);
cursor = end;
}
代码示例来源:origin: com.jakewharton.android.repackaged/dalvik-dx
/** {@inheritDoc} */
@Override
public void write(ByteArray bytes) {
int blen = bytes.size();
int writeAt = cursor;
int end = writeAt + blen;
if (stretchy) {
ensureCapacity(end);
} else if (end > data.length) {
throwBounds();
return;
}
bytes.getBytes(data, writeAt);
cursor = end;
}
代码示例来源:origin: dragome/dragome-sdk
bytes.getBytes(byteArray, 0);
return Utf8Utils.utf8BytesToString(byteArray);