android:change DoricArrayBufferResource to public

This commit is contained in:
pengfei.zhou 2022-03-21 17:58:15 +08:00 committed by osborn
parent ed9475b72a
commit a19c327743

View File

@ -26,7 +26,7 @@ import pub.doric.async.AsyncResult;
* @Author: pengfei.zhou * @Author: pengfei.zhou
* @CreateDate: 2022/2/28 * @CreateDate: 2022/2/28
*/ */
class DoricArrayBufferResource extends DoricResource { public class DoricArrayBufferResource extends DoricResource {
private JSArrayBuffer value; private JSArrayBuffer value;
public DoricArrayBufferResource(DoricContext doricContext, String identifier) { public DoricArrayBufferResource(DoricContext doricContext, String identifier) {
@ -37,6 +37,10 @@ class DoricArrayBufferResource extends DoricResource {
this.value = value; this.value = value;
} }
public JSArrayBuffer getValue() {
return this.value;
}
@Override @Override
public AsyncResult<byte[]> fetchRaw() { public AsyncResult<byte[]> fetchRaw() {
final AsyncResult<byte[]> result = new AsyncResult<>(); final AsyncResult<byte[]> result = new AsyncResult<>();