@Override public void set(Uint8Array array, int offset) { if (array instanceof Uint8ArrayNative) { // Note that any JSO would pass this check, but since only one JSO can // implement a given interface it has to be this one, so any other // implementations must be Java emulations. setNative(array, offset); return; } int len = array.length(); for (int i = 0; i < len; ++i) { set(offset++, array.get(i)); } }
@Override public void set(Uint8Array array, int offset) { if (array instanceof Uint8ArrayNative) { // Note that any JSO would pass this check, but since only one JSO can // implement a given interface it has to be this one, so any other // implementations must be Java emulations. setNative(array, offset); return; } int len = array.length(); for (int i = 0; i < len; ++i) { set(offset++, array.get(i)); } }
@Override public void set(Uint8Array array, int offset) { if (array instanceof Uint8ArrayNative) { // Note that any JSO would pass this check, but since only one JSO can // implement a given interface it has to be this one, so any other // implementations must be Java emulations. setNative(array, offset); return; } int len = array.length(); for (int i = 0; i < len; ++i) { set(offset++, array.get(i)); } }