Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSMutableData.appendByte()


    private byte[] encodeReal(double value) {
      NSMutableData data = new NSMutableData();
      if (value > Float.MAX_VALUE || value < Float.MIN_VALUE) {
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerReal, 3));
        long bits = Double.doubleToLongBits(value);
        data.appendByte((byte) ((bits >>> 56) & 0xff));
        data.appendByte((byte) ((bits >>> 48) & 0xff));
        data.appendByte((byte) ((bits >>> 40) & 0xff));
        data.appendByte((byte) ((bits >>> 32) & 0xff));
        data.appendByte((byte) ((bits >>> 24) & 0xff));
        data.appendByte((byte) ((bits >>> 16) & 0xff));
View Full Code Here


      NSMutableData data = new NSMutableData();
      if (value > Float.MAX_VALUE || value < Float.MIN_VALUE) {
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerReal, 3));
        long bits = Double.doubleToLongBits(value);
        data.appendByte((byte) ((bits >>> 56) & 0xff));
        data.appendByte((byte) ((bits >>> 48) & 0xff));
        data.appendByte((byte) ((bits >>> 40) & 0xff));
        data.appendByte((byte) ((bits >>> 32) & 0xff));
        data.appendByte((byte) ((bits >>> 24) & 0xff));
        data.appendByte((byte) ((bits >>> 16) & 0xff));
        data.appendByte((byte) ((bits >>> 8) & 0xff));
View Full Code Here

      if (value > Float.MAX_VALUE || value < Float.MIN_VALUE) {
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerReal, 3));
        long bits = Double.doubleToLongBits(value);
        data.appendByte((byte) ((bits >>> 56) & 0xff));
        data.appendByte((byte) ((bits >>> 48) & 0xff));
        data.appendByte((byte) ((bits >>> 40) & 0xff));
        data.appendByte((byte) ((bits >>> 32) & 0xff));
        data.appendByte((byte) ((bits >>> 24) & 0xff));
        data.appendByte((byte) ((bits >>> 16) & 0xff));
        data.appendByte((byte) ((bits >>> 8) & 0xff));
        data.appendByte((byte) ((bits >>> 0) & 0xff));
View Full Code Here

        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerReal, 3));
        long bits = Double.doubleToLongBits(value);
        data.appendByte((byte) ((bits >>> 56) & 0xff));
        data.appendByte((byte) ((bits >>> 48) & 0xff));
        data.appendByte((byte) ((bits >>> 40) & 0xff));
        data.appendByte((byte) ((bits >>> 32) & 0xff));
        data.appendByte((byte) ((bits >>> 24) & 0xff));
        data.appendByte((byte) ((bits >>> 16) & 0xff));
        data.appendByte((byte) ((bits >>> 8) & 0xff));
        data.appendByte((byte) ((bits >>> 0) & 0xff));
      } else {
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.