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 {
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 1));
        data.appendByte((byte) ((value >>> 8) & 0xff));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      }
      return data.bytes();
    }
View Full Code Here


        data.appendByte((byte) ((value >>> 8) & 0xff));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      } else {
        data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerInt, 1));
        data.appendByte((byte) ((value >>> 8) & 0xff));
        data.appendByte((byte) ((value >>> 0) & 0xff));
      }
      return data.bytes();
    }

    /**
 
View Full Code Here

    private byte[] encodeUUID(UUID value) {
      long mostSigBits = value.getMostSignificantBits();
      long leastSigBits = value.getLeastSignificantBits();

      NSMutableData data = new NSMutableData();
      data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerUID, 0x0f));
      data.appendByte((byte) ((mostSigBits >>> 56) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 48) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 40) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 32) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 24) & 0xff));
View Full Code Here

      long mostSigBits = value.getMostSignificantBits();
      long leastSigBits = value.getLeastSignificantBits();

      NSMutableData data = new NSMutableData();
      data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerUID, 0x0f));
      data.appendByte((byte) ((mostSigBits >>> 56) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 48) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 40) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 32) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 24) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 16) & 0xff));
View Full Code Here

      long leastSigBits = value.getLeastSignificantBits();

      NSMutableData data = new NSMutableData();
      data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerUID, 0x0f));
      data.appendByte((byte) ((mostSigBits >>> 56) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 48) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 40) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 32) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 24) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 16) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 8) & 0xff));
View Full Code Here

      NSMutableData data = new NSMutableData();
      data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerUID, 0x0f));
      data.appendByte((byte) ((mostSigBits >>> 56) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 48) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 40) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 32) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 24) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 16) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 8) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 0) & 0xff));
View Full Code Here

      NSMutableData data = new NSMutableData();
      data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerUID, 0x0f));
      data.appendByte((byte) ((mostSigBits >>> 56) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 48) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 40) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 32) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 24) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 16) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 8) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 0) & 0xff));
View Full Code Here

      data.appendByte((byte) typeMarker(Type.kCFBinaryPlistMarkerUID, 0x0f));
      data.appendByte((byte) ((mostSigBits >>> 56) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 48) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 40) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 32) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 24) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 16) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 8) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 0) & 0xff));

      data.appendByte((byte) ((leastSigBits >>> 56) & 0xff));
View Full Code Here

      data.appendByte((byte) ((mostSigBits >>> 56) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 48) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 40) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 32) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 24) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 16) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 8) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 0) & 0xff));

      data.appendByte((byte) ((leastSigBits >>> 56) & 0xff));
      data.appendByte((byte) ((leastSigBits >>> 48) & 0xff));
View Full Code Here

      data.appendByte((byte) ((mostSigBits >>> 48) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 40) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 32) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 24) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 16) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 8) & 0xff));
      data.appendByte((byte) ((mostSigBits >>> 0) & 0xff));

      data.appendByte((byte) ((leastSigBits >>> 56) & 0xff));
      data.appendByte((byte) ((leastSigBits >>> 48) & 0xff));
      data.appendByte((byte) ((leastSigBits >>> 40) & 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.