Package com.webobjects.foundation

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


        data.appendByte((byte) ((value >>> 16) & 0xff));
        data.appendByte((byte) ((value >>> 8) & 0xff));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else if (value > ByteMaxValue) {
        data.appendByte((byte) typeMarker(marker, 0x0f));
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 1));
        data.appendByte((byte) ((value >>> 8) & 0xff));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else if (value >= 15) {
        data.appendByte((byte) typeMarker(marker, 0x0f));
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 0));
View Full Code Here


        data.appendByte((byte) ((value >>> 8) & 0xff));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else if (value > ByteMaxValue) {
        data.appendByte((byte) typeMarker(marker, 0x0f));
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 1));
        data.appendByte((byte) ((value >>> 8) & 0xff));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else if (value >= 15) {
        data.appendByte((byte) typeMarker(marker, 0x0f));
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 0));
        data.appendByte((byte) ((value >>> 0) & 0xff));
View Full Code Here

        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else if (value > ByteMaxValue) {
        data.appendByte((byte) typeMarker(marker, 0x0f));
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 1));
        data.appendByte((byte) ((value >>> 8) & 0xff));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else if (value >= 15) {
        data.appendByte((byte) typeMarker(marker, 0x0f));
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 0));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else {
View Full Code Here

        data.appendByte((byte) typeMarker(marker, 0x0f));
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 1));
        data.appendByte((byte) ((value >>> 8) & 0xff));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else if (value >= 15) {
        data.appendByte((byte) typeMarker(marker, 0x0f));
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 0));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else {
        data.appendByte((byte) typeMarker(marker, (byte) (value & 0x0f)));
      }
View Full Code Here

        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 1));
        data.appendByte((byte) ((value >>> 8) & 0xff));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else if (value >= 15) {
        data.appendByte((byte) typeMarker(marker, 0x0f));
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 0));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else {
        data.appendByte((byte) typeMarker(marker, (byte) (value & 0x0f)));
      }
      return data.bytes();
View Full Code Here

        data.appendByte((byte) ((value >>> 8) & 0xff));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else if (value >= 15) {
        data.appendByte((byte) typeMarker(marker, 0x0f));
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 0));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else {
        data.appendByte((byte) typeMarker(marker, (byte) (value & 0x0f)));
      }
      return data.bytes();
    }
View Full Code Here

        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 {
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerReal, 2));
View Full Code Here

        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 {
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerReal, 2));
        int bits = Float.floatToIntBits((float) value);
View Full Code Here

        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 {
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerReal, 2));
        int bits = Float.floatToIntBits((float) value);
        data.appendByte((byte) ((bits >>> 24) & 0xff));
View Full Code Here

        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 {
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerReal, 2));
        int bits = Float.floatToIntBits((float) value);
        data.appendByte((byte) ((bits >>> 24) & 0xff));
        data.appendByte((byte) ((bits >>> 16) & 0xff));
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.