Searched defs:bytes (Results 1 - 25 of 241) sorted by relevance

12345678910

/openjdk7/hotspot/src/share/vm/oops/
H A DarrayOop.cpp38 julong bytes = length * bytes_per_element + header_size_in_bytes(); local
39 return (julong)(size_t)bytes == bytes;
/openjdk7/jdk/test/java/net/URLClassLoader/
H A DB6896088.java42 fos.write(bytes(nums));
66 static byte[] bytes (int[] i) { method in class:B6896088
/openjdk7/jdk/src/share/sample/nio/chatserver/
H A DDataReader.java45 void onData(Client client, ByteBuffer buffer, int bytes); argument
H A DMessageReader.java78 * @param bytes the number of bytes read into the buffer
81 public void onData(Client client, ByteBuffer buffer, int bytes) { argument
84 client.appendMessage(new String(buffer.array(), 0, bytes));
/openjdk7/jdk/test/sun/nio/cs/
H A DTest6392804.java52 static void test(String csn, byte[] bytes) throws Throwable { argument
55 CoderResult cr = dec.decode(ByteBuffer.wrap(bytes), cb, true);
/openjdk7/jdk/test/sun/security/mscapi/
H A DRSAEncryptDecrypt.java67 private static void displayBytes(String label, byte[] bytes) { argument
68 System.out.println(label + " [length=" + bytes.length + "]");
69 for (byte b : bytes) {
/openjdk7/jdk/src/share/classes/java/security/
H A DSecureRandomSpi.java54 * Generates a user-specified number of random bytes.
61 * @param bytes the array to be filled in with random bytes.
63 protected abstract void engineNextBytes(byte[] bytes); argument
66 * Returns the given number of seed bytes. This call may be used to
69 * @param numBytes the number of seed bytes to generate.
71 * @return the seed bytes.
/openjdk7/jaxws/src/share/jaxws_classes/javax/xml/bind/annotation/adapters/
H A DHexBinaryAdapter.java45 public String marshal(byte[] bytes) { argument
46 if(bytes==null) return null;
47 return DatatypeConverter.printHexBinary(bytes);
/openjdk7/jdk/src/windows/native/java/lang/
H A DProcessEnvironment_md.c37 jbyteArray bytes; local
52 if ((bytes = (*env)->NewByteArray(env, i)) == NULL) return NULL;
53 (*env)->SetByteArrayRegion(env, bytes, 0, i, blockA);
56 String_init_ID, bytes);
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/DES/
H A DTestUtility.java36 public static String hexDump(byte[] bytes) { argument
38 StringBuffer buf = new StringBuffer (bytes.length * 2);
42 for (i = 0; i < bytes.length; i++) {
43 buf.append (digits.charAt ((bytes[i] >> 4) & 0x0f));
44 buf.append (digits.charAt (bytes[i] & 0x0f));
46 if ((i + 1) != bytes.length)
/openjdk7/jdk/src/share/classes/sun/security/krb5/
H A DConfounder.java42 public static byte[] bytes(int size) { method in class:Confounder
/openjdk7/jdk/test/javax/management/openmbean/
H A DMBeanFeatureInfoSerialStore.java65 final byte[] bytes = new byte[] {
142 map.put("floatAttr",bytes);
147 final byte[] bytes = new byte[] {
215 map.put("intAttr",bytes);
220 final byte[] bytes = new byte[] {
303 map.put("arrayOp",bytes);
308 final byte[] bytes = new byte[] {
372 map.put("intPar",bytes);
377 final byte[] bytes = new byte[] {
445 map.put("boolPar",bytes);
1057 deserialize(byte[] bytes) argument
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/generic/
H A DGOTO_W.java93 protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException argument
95 index = bytes.readInt();
H A DJSR_W.java93 protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException argument
95 index = bytes.readInt();
H A DLDC_W.java84 protected void initFromFile(ByteSequence bytes, boolean wide) argument
87 setIndex(bytes.readUnsignedShort());
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/util/
H A DByteSequence.java63 * Utility class that implements a sequence of bytes which can be read
72 public ByteSequence(byte[] bytes) { argument
73 super(new ByteArrayStream(bytes));
81 ByteArrayStream(byte[] bytes) { super(bytes); } argument
/openjdk7/jdk/src/solaris/native/java/io/
H A DFileOutputStream_md.c69 jobject this, jbyteArray bytes, jint off, jint len, jboolean append) {
70 writeBytes(env, this, bytes, off, len, append, fos_fd);
68 Java_java_io_FileOutputStream_writeBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, jint len, jboolean append) argument
/openjdk7/jdk/src/windows/classes/sun/security/mscapi/
H A DPRNG.java45 * bytes.
69 * Generates a user-specified number of random bytes.
71 * @param bytes the array to be filled in with random bytes.
73 protected void engineNextBytes(byte[] bytes) { argument
74 if (bytes != null) {
75 if (generateSeed(0, bytes) == null) {
76 throw new ProviderException("Error generating random bytes");
82 * Returns the given number of seed bytes. This call may be used to
85 * @param numBytes the number of seed bytes t
[all...]
/openjdk7/jdk/src/windows/native/java/io/
H A DFileOutputStream_md.c70 jobject this, jbyteArray bytes, jint off, jint len, jboolean append)
72 writeBytes(env, this, bytes, off, len, append, fos_fd);
69 Java_java_io_FileOutputStream_writeBytes(JNIEnv *env, jobject this, jbyteArray bytes, jint off, jint len, jboolean append) argument
/openjdk7/jdk/test/java/lang/String/
H A DEncodings.java48 static void go(String enc, String str, final byte[] bytes, boolean bidir) argument
54 if (!(new String(bytes, enc).equals(str)))
58 if (!(new String(bytes, charset).equals(str)))
65 if (!(new String(bytes, 0, 4, charset).equals(start)))
67 if (!(new String(bytes, 4, bytes.length - 4, charset).equals(end)))
70 if (!(new String(bytes, 0, 6, charset).equals(start)))
73 if (!(new String(bytes, 0, 2, charset).equals(start)))
75 if (!(new String(bytes, 2, bytes
148 go(String enc, String str, byte[] bytes) argument
[all...]
/openjdk7/jdk/test/java/nio/file/etc/
H A DExceptions.java122 static Object deserialize(byte[] bytes) argument
125 ByteArrayInputStream in = new ByteArrayInputStream(bytes);
/openjdk7/jdk/test/sun/security/smartcardio/
H A DTestTransmit.java68 if (received.length != response.bytes.length) {
73 if ((received[i] & response.mask[i]) != response.bytes[i]) {
87 final byte[] bytes; field in class:TestTransmit.Bytes
89 Bytes(byte[] bytes, byte[] mask) { argument
90 this.bytes = bytes;
/openjdk7/jdk/test/tools/launcher/6842838/
H A DCreateBadJar.java126 static int findInCEN(byte[] bytes, int cenpos, String entryName) { argument
135 if (u32(bytes, pos) != CENSIG) throw new RuntimeException ("entry not found in CEN or premature end...");
137 int csize = u32(bytes, pos+0x14); // +0x14 1 dword csize
138 int uncompsize = u32(bytes, pos+0x18); // +0x18 1 dword uncomp size
139 int filenameLength = u16(bytes, pos+0x1c); // +0x1c 1 word length of filename
140 int extraLength = u16(bytes, pos+0x1e); // +0x1e 1 world length of extra field
141 int commentLength = u16(bytes, pos+0x20); // +0x20 1 world length of file comment
142 filename = new String(bytes, pos+0x2e, filenameLength); // +0x2e chars of filename
143 int offset = u32(bytes, pos+0x2a); // +0x2a chars of filename
/openjdk7/jdk/src/share/demo/management/VerboseGC/
H A DPrintGCStat.java146 private String formatBytes(long bytes) { argument
147 long kb = bytes;
148 if (bytes > 0) {
149 kb = bytes / 1024;
/openjdk7/jdk/src/share/classes/sun/security/pkcs/
H A DSigningCertificateInfo.java106 public void parse(byte[] bytes) throws IOException { argument
109 DerValue derValue = new DerValue(bytes);

Completed in 113 milliseconds

12345678910