io.v4.bytes.js Maven / Gradle / Ivy
/*
* Copyright (c) 2010-2019 SAP and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* SAP - initial API and implementation
*/
/**
* API v4 Bytes
*
* Bytes module is supported only with the Mozilla Rhino engine
*/
/**
* Convert the native JavaScript byte array to Java one. To be used internally by the API layer
*/
exports.toJavaBytes = function(bytes) {
var internalBytes = java.lang.reflect.Array.newInstance(java.lang.Byte.TYPE, bytes.length);
for (var i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy