/openjdk7/jdk/test/java/lang/String/ |
H A D | Encodings.java | 48 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/make/com/sun/java/pack/ |
H A D | FILES_cpp.gmk | 27 bytes.cpp \
|
/openjdk7/jdk/src/share/native/java/io/ |
H A D | ObjectOutputStream.c | 58 jbyte *bytes; local 81 bytes = (*env)->GetPrimitiveArrayCritical(env, dst, NULL); 82 if (bytes == NULL) { /* exception thrown */ 97 bytes[dstpos++] = (ival >> 24) & 0xFF; 98 bytes[dstpos++] = (ival >> 16) & 0xFF; 99 bytes[dstpos++] = (ival >> 8) & 0xFF; 100 bytes[dstpos++] = (ival >> 0) & 0xFF; 104 (*env)->ReleasePrimitiveArrayCritical(env, dst, bytes, 0); 130 jbyte *bytes; local 153 bytes [all...] |
/openjdk7/jdk/test/javax/crypto/spec/GCMParameterSpec/ |
H A D | GCMParameterSpecTest.java | 38 private static byte[] bytes = new byte[] { field in class:GCMParameterSpecTest 45 newGCMParameterSpecFail(-1, bytes); 47 newGCMParameterSpecPass(128, bytes); 49 newGCMParameterSpecFail(-1, bytes, 2, 4); 51 newGCMParameterSpecFail(128, bytes, -2, 4); 52 newGCMParameterSpecFail(128, bytes, 2, -4); 53 newGCMParameterSpecFail(128, bytes, 2, 15); // one too many 55 newGCMParameterSpecPass(128, bytes, 2, 14); // ok. 56 newGCMParameterSpecPass(96, bytes, 4, 4); 57 newGCMParameterSpecPass(96, bytes, [all...] |
/openjdk7/jdk/src/share/native/java/nio/ |
H A D | Bits.c | 54 #define GETCRITICAL(bytes, env, obj) { \ 55 bytes = (*env)->GetPrimitiveArrayCritical(env, obj, NULL); \ 56 if (bytes == NULL) \ 60 #define RELEASECRITICAL(bytes, env, obj, mode) { \ 61 (*env)->ReleasePrimitiveArrayCritical(env, obj, bytes, mode); \ 74 jbyte *bytes; local 88 GETCRITICAL(bytes, env, src); 90 srcShort = (jshort *)(bytes + srcPos); 97 RELEASECRITICAL(bytes, env, src, JNI_ABORT); 109 jbyte *bytes; local 144 jbyte *bytes; local 179 jbyte *bytes; local 214 jbyte *bytes; local 249 jbyte *bytes; local [all...] |
/openjdk7/jdk/test/javax/crypto/Cipher/ |
H A D | GCMAPI.java | 43 private static byte[] bytes = new byte[] { field in class:GCMAPI 55 updateAADPass(bytes); 58 updateAADFail(bytes, -2, 4); 59 updateAADFail(bytes, 2, -4); 60 updateAADFail(bytes, 2, 15); // one too many 62 updateAADPass(bytes, 2, 14); // ok. 63 updateAADPass(bytes, 4, 4); 64 updateAADPass(bytes, 0, 0); 66 ByteBuffer bb = ByteBuffer.wrap(bytes);
|
/openjdk7/corba/src/share/classes/com/sun/tools/corba/se/idl/ |
H A D | InvalidCharacter.java | 50 byte[] bytes = new byte [pos - 1]; 52 bytes[i] = (byte)' '; // <d62023> 53 pointer = new String (bytes) + pointer;
|
/openjdk7/jdk/src/windows/classes/sun/security/mscapi/ |
H A D | PRNG.java | 45 * 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/langtools/src/share/classes/com/sun/tools/javac/util/ |
H A D | UnsharedNameTable.java | 115 if (n.getByteLength() == len && equals(n.bytes, 0, cs, start, len)) { 124 byte[] bytes = new byte[len]; 125 System.arraycopy(cs, start, bytes, 0, len); 126 n = new NameImpl(this, bytes, index++); 128 System.arraycopy(cs, start, n.bytes, 0, len); 149 NameImpl(UnsharedNameTable table, byte[] bytes, int index) { argument 151 this.bytes = bytes; 155 final byte[] bytes; field in class:UnsharedNameTable.NameImpl 165 return bytes [all...] |
H A D | SharedNameTable.java | 33 * by using an array of bytes for each name. 65 public byte[] bytes; field in class:SharedNameTable 71 /** The number of filled bytes in `names'. 85 bytes = new byte[nameSize]; 96 byte[] bytes = this.bytes; 97 while (nc + len * 3 >= bytes.length) { 99 byte[] newnames = new byte[bytes.length * 2]; 100 System.arraycopy(bytes, 0, newnames, 0, bytes [all...] |
/openjdk7/jdk/src/share/sample/nio/server/ |
H A D | URLDumper.java | 67 byte [] bytes = new byte [4096]; 73 while ((read = is.read(bytes)) != -1) { 74 fos.write(bytes, 0, read);
|
/openjdk7/jdk/src/solaris/native/sun/nio/fs/ |
H A D | SolarisNativeDispatcher.c | 89 jbyteArray bytes; local 109 bytes = (*env)->NewByteArray(env, len); 110 if (bytes == NULL) 112 (*env)->SetByteArrayRegion(env, bytes, 0, len, (jbyte*)name); 113 (*env)->SetObjectField(env, entry, entry_name, bytes); 116 bytes = (*env)->NewByteArray(env, len); 117 if (bytes == NULL) 119 (*env)->SetByteArrayRegion(env, bytes, 0, len, (jbyte*)dir); 120 (*env)->SetObjectField(env, entry, entry_dir, bytes); 123 bytes [all...] |
/openjdk7/jdk/src/share/classes/sun/security/util/ |
H A D | ManifestDigester.java | 39 /** the raw bytes of the manifest */ 58 * raw bytes of the next section. 62 * @returns false if end of bytes has been reached, otherwise returns 108 public ManifestDigester(byte bytes[]) argument 110 rawBytes = bytes; 131 if (isNameAttr(bytes, start)) { 136 new String(bytes, start+6, len-6, "UTF8")); 140 if (bytes[i] == '\r') { 148 if (bytes[i++] == ' ') { 152 && (bytes[ 182 isNameAttr(byte bytes[], int start) argument 219 doOldStyle(MessageDigest md, byte[] bytes, int offset, int length) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/java/util/jar/pack/ |
H A D | Instruction.java | 38 protected byte[] bytes; // bytecodes field in class:Instruction 42 protected int length; // bytes in this instruction 46 protected Instruction(byte[] bytes, int pc, int bc, int w, int length) { argument 47 reset(bytes, pc, bc, w, length); 49 private void reset(byte[] bytes, int pc, int bc, int w, int length) { argument 50 this.bytes = bytes; 64 return bytes; 78 if (npc == bytes.length) 81 return Instruction.at(bytes, np 100 at(byte[] bytes, int pc) argument 104 at(byte[] bytes, int pc, Instruction reuse) argument 247 Switch(byte[] bytes, int pc, int bc) argument 291 TableSwitch(byte[] bytes, int pc) argument 312 LookupSwitch(byte[] bytes, int pc) argument 397 getInt(byte[] bytes, int pc) argument 400 getShort(byte[] bytes, int pc) argument 403 getByte(byte[] bytes, int pc) argument 408 setInt(byte[] bytes, int pc, int x) argument 412 setShort(byte[] bytes, int pc, int x) argument 416 setByte(byte[] bytes, int pc, int x) argument [all...] |
H A D | Fixups.java | 37 * and stores some of its state in the bytes themselves. 46 byte[] bytes; // the subject of the relocations field in class:Fixups 51 int[] bigDescs; // descs which cannot be stored in the bytes 55 // patching, bytes addressed by descs may also be used to 56 // link this data structure together. If the bytes are missing, 57 // or if the "desc" is too large to encode in the bytes, 60 Fixups(byte[] bytes) { argument 61 this.bytes = bytes; 66 // If there are no bytes, al 69 Fixups(byte[] bytes, Collection fixups) argument 222 storeIndex(byte[] bytes, int loc, int fmt, int value) argument 379 add(Object prevFixups, byte[] bytes, int loc, int fmt, Entry e) argument 405 setBytes(Object fixups, byte[] bytes) argument 439 finishRefs(Object fixups, byte[] bytes, ConstantPool.Index ix) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/security/krb5/internal/util/ |
H A D | KrbDataInputStream.java | 60 * Reads up to the specific number of bytes from this input stream. 61 * @param num the number of bytes to be read. 66 byte[] bytes = new byte[num]; 67 read(bytes, 0, num); 71 result |= (bytes[i] & 0xff) << (num - i - 1) * 8; 73 result |= (bytes[i] & 0xff) << i * 8;
|
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/ |
H A D | P11SecureRandom.java | 64 // bytes remaining in mixBuffer, if mixing is used 80 // number of bytes remain in iBuffer 122 protected void engineNextBytes(byte[] bytes) { argument 123 if ((bytes == null) || (bytes.length == 0)) { 126 if (bytes.length <= IBUFFER_SIZE) { 129 while (ofs < bytes.length) { 138 // copy the buffered bytes into 'bytes' 139 while ((ofs < bytes 179 implNextBytes(byte[] bytes) argument [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/generic/ |
H A D | LDC_W.java | 84 protected void initFromFile(ByteSequence bytes, boolean wide) argument 87 setIndex(bytes.readUnsignedShort());
|
/openjdk7/hotspot/src/share/vm/gc_implementation/parallelScavenge/ |
H A D | psVirtualspace.cpp | 95 bool PSVirtualSpace::expand_by(size_t bytes) { argument 96 assert(is_aligned(bytes), "arg not aligned"); 99 if (uncommitted_size() < bytes) { 105 os::commit_memory(base_addr, bytes, alignment(), !ExecMem); 107 _committed_high_addr += bytes; 113 bool PSVirtualSpace::shrink_by(size_t bytes) { argument 114 assert(is_aligned(bytes), "arg not aligned"); 117 if (committed_size() < bytes) { 121 char* const base_addr = committed_high_addr() - bytes; 122 bool result = special() || os::uncommit_memory(base_addr, bytes); 131 expand_into(PSVirtualSpace* other_space, size_t bytes) argument 264 expand_by(size_t bytes) argument 282 shrink_by(size_t bytes) argument 299 expand_into(PSVirtualSpace* other_space, size_t bytes) argument [all...] |
/openjdk7/jdk/test/java/io/readBytes/ |
H A D | MemoryLeak.java | 34 byte[] bytes = new byte[1 << 20]; 41 s.read(bytes);
|
/openjdk7/jdk/src/share/classes/sun/nio/ch/ |
H A D | SctpMessageInfoImpl.java | 36 private final int bytes; /* 0 */ field in class:SctpMessageInfoImpl 52 bytes = 0; 58 int bytes, 65 this.bytes = bytes; 95 public int bytes() { method in class:SctpMessageInfoImpl 96 return bytes; 163 .append(", Bytes: ").append(bytes) 56 SctpMessageInfoImpl(int assocId, SocketAddress address, int bytes, int streamNumber, boolean complete, boolean unordered, int ppid) argument
|
/openjdk7/jdk/test/java/util/BitSet/ |
H A D | ImportExport.java | 45 void equal(byte[] bytes, BitSet s) { argument 46 equal(s, BitSet.valueOf(bytes)); 47 equal(s, BitSet.valueOf(ByteBuffer.wrap(bytes))); 50 Arrays.copyOf(bytes, bytes.length + 8 + rnd.nextInt(8))) 63 byte[] bytes = new byte[i]; 65 equal(bytes, s); 66 equal(BitSet.valueOf(bytes).toByteArray(), new byte[0]); 70 bytes[k] |= 1 << j; 72 equal(bytes, [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/bcel/internal/util/ |
H A D | CodeHTML.java | 106 private final String codeToHTML(ByteSequence bytes, int method_number) argument 109 short opcode = (short)bytes.readUnsignedByte(); 119 /* Special case: Skip (0-3) padding bytes, i.e., the 120 * following bytes are 4-byte-aligned 123 int remainder = bytes.getIndex() % 4; 127 bytes.readByte(); 130 default_offset = bytes.readInt(); 135 low = bytes.readInt(); 136 high = bytes.readInt(); 138 offset = bytes 407 findGotos(ByteSequence bytes, Method method, Code code) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/jmx/snmp/ |
H A D | BerDecoder.java | 60 bytes = b ; 276 * it simply returns the next TLV as an array of bytes. 291 if (contentLength > (bytes.length - next)) 294 java.lang.System.arraycopy(bytes,backup,data,0,tlvLength); 296 // data[i] = bytes[backup + i] ; 363 if (l > (bytes.length - next)) throw new BerException(); 428 final StringBuffer result = new StringBuffer(bytes.length * 2) ; 429 for (int i = 0 ; i < bytes.length ; i++) { 430 final int b = (bytes[i] > 0) ? bytes[ 740 private final byte bytes[]; field in class:BerDecoder [all...] |
/openjdk7/jdk/test/sun/nio/cs/ |
H A D | UkrainianIsNotRussian.java | 33 private static String decode(byte[] bytes, String encoding) throws Throwable { argument 34 String s = new String(bytes, encoding); 36 check(Arrays.equals(s.getBytes(encoding), bytes)); 41 final byte[] bytes = new byte[1]; 44 bytes[0] = (byte) i; 45 final String r = decode(bytes, "KOI8_R"); 46 final String u = decode(bytes, "KOI8_U");
|