Package anvil.core

Examples of anvil.core.Any.sizeOf()


          break;
        case IS_INT:
          _access.write(value.toInt());
          break;
        case IS_BINARY:
          n = value.sizeOf();
          if (n > 0) {
            _access.write(value.toBinary(), 0, n);
          }
          break;
        default:
View Full Code Here


      try {
        for (int i=0; i<parameters.length; i++) {
          Any param = parameters[i];

          if (param.isBinary()) {
            update(param.toBinary(), 0, param.sizeOf());

          } else if (param instanceof AnyFile) {
            update(context, (File)param.toObject());

          } else if (param instanceof AnyURL) {
View Full Code Here

          break;
        case IS_INT:
          _output.write(value.toInt());
          break;
        case IS_BINARY:
          int len = value.sizeOf();
          if (n > 0) {
            _output.write(value.toBinary(), 0, len);
          }
          break;
        default:
View Full Code Here

        Any param = parameters[0];
        byte[] data;
        int size;
        if (param.isBinary()) {
          data = param.toBinary();
          size = param.sizeOf();
        } else {
          data = anvil.util.Conversions.getBytes(param.toString());
          size = data.length;
        }
        if (parameters.length > 2) {
View Full Code Here

        Any param = parameters[0];
        byte[] data;
        int size;
        if (param.isBinary()) {
          data = param.toBinary();
          size = param.sizeOf();
        } else {
          data = anvil.util.Conversions.getBytes(param.toString());
          size = data.length;
        }
        if (parameters.length > 2) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.