/openjdk7/jdk/src/share/classes/com/sun/media/sound/ |
H A D | SoftAudioBuffer.java | 32 * This class is used to store audio buffer. 39 private float[] buffer; field in class:SoftAudioBuffer 54 float[] bak_buffer = buffer; 61 buffer = swap.buffer; 68 swap.buffer = bak_buffer; 85 Arrays.fill(buffer, 0); 96 if (buffer == null) 97 buffer = new float[size]; 98 return buffer; 101 get(byte[] buffer, int channel) argument [all...] |
H A D | ModelByteBufferWavetable.java | 61 byte[] buff1 = buffer.array(); 63 pos += buffer.arrayOffset(); 80 pos -= buffer.arrayOffset(); 113 return (int)buffer.capacity() + (int)buffer8.capacity() - pos - pos2; 130 private final ModelByteBuffer buffer; field in class:ModelByteBufferWavetable 137 public ModelByteBufferWavetable(ModelByteBuffer buffer) { argument 138 this.buffer = buffer; 141 public ModelByteBufferWavetable(ModelByteBuffer buffer, argument 143 this.buffer 147 ModelByteBufferWavetable(ModelByteBuffer buffer, AudioFormat format) argument 152 ModelByteBufferWavetable(ModelByteBuffer buffer, AudioFormat format, float pitchcorrection) argument 159 set8BitExtensionBuffer(ModelByteBuffer buffer) argument [all...] |
/openjdk7/jdk/src/macosx/classes/sun/lwawt/ |
H A D | LWCanvasPeer.java | 48 * The back buffer provide user with a BufferStrategy. 62 final VolatileImage buffer = gc.createBackBufferImage(getTarget(), 0); 64 backBuffer = buffer; 78 final VolatileImage buffer = (VolatileImage) getBackBuffer(); 79 if (buffer == null) { 84 g.drawImage(buffer, x1, y1, x2, y2, x1, y1, x2, y2, null); 89 final Graphics2D bg = (Graphics2D) buffer.getGraphics(); 92 bg.clearRect(0, 0, buffer.getWidth(), buffer.getHeight()); 101 final Image buffer [all...] |
/openjdk7/jdk/test/java/net/DatagramSocket/ |
H A D | DatagramTimeout.java | 41 byte[] buffer = new byte[50]; 42 p = new DatagramPacket(buffer, buffer.length);
|
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/wrapper/ |
H A D | CK_MECHANISM.java | 146 StringBuffer buffer = new StringBuffer(); 148 buffer.append(Constants.INDENT); 149 buffer.append("mechanism: "); 150 buffer.append(mechanism); 151 buffer.append(Constants.NEWLINE); 153 buffer.append(Constants.INDENT); 154 buffer.append("pParameter: "); 155 buffer.append(pParameter.toString()); 156 buffer.append(Constants.NEWLINE); 158 buffer [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/oops/ |
H A D | CompressedLineNumberReadStream.java | 31 /** Equivalent to CompressedLineNumberReadStream(buffer, 0) */ 32 public CompressedLineNumberReadStream(Address buffer) { argument 33 this(buffer, 0); 36 public CompressedLineNumberReadStream(Address buffer, int position) { argument 37 super(buffer, position);
|
/openjdk7/hotspot/src/share/vm/utilities/ |
H A D | errorReporter.hpp | 37 void call(FILE* fd, char *buffer, int length);
|
/openjdk7/jdk/test/java/beans/XMLEncoder/ |
H A D | Test4822050.java | 51 byte[] buffer = baos.toByteArray(); 53 start(buffer); 56 private static void start(byte[] buffer) { argument 57 Thread thread = new Thread(new Test4822050(buffer)); 62 private byte[] buffer; field in class:Test4822050 64 public Test4822050(byte[] buffer) { argument 65 this.buffer = buffer; 78 XMLDecoder decoder = new XMLDecoder(new ByteArrayInputStream(this.buffer));
|
/openjdk7/jdk/src/share/sample/nio/chatserver/ |
H A D | DataReader.java | 45 void onData(Client client, ByteBuffer buffer, int bytes); argument
|
H A D | Client.java | 74 * Enqueues a write of the buffer to the channel. 75 * The call is asynchronous so the buffer is not safe to modify after 76 * passing the buffer here. 78 * @param buffer the buffer to send to the channel 80 private void writeMessage(final ByteBuffer buffer) { argument 84 queue.add(buffer); 98 ByteBuffer buffer; 101 buffer = queue.poll(); 102 if (buffer 113 writeBuffer(ByteBuffer buffer) argument [all...] |
/openjdk7/jaxws/src/share/jaxws_classes/org/relaxng/datatype/helpers/ |
H A D | StreamingValidatorImpl.java | 62 /** This buffer accumulates characters. */ 63 private final StringBuffer buffer = new StringBuffer(); field in class:StreamingValidatorImpl 72 // append characters to the current buffer. 73 buffer.append(buf,start,len); 77 return baseType.isValid(buffer.toString(),context); 81 baseType.checkValid(buffer.toString(),context);
|
/openjdk7/jdk/make/tools/src/build/tools/generatecharacter/ |
H A D | Utility.java | 118 StringBuffer buffer = new StringBuffer(); 119 // for (int i=0; i<a.length; ++i) buffer.append((char) a[i]); 120 buffer.append((char) (a.length >> 16)); 121 buffer.append((char) a.length); 128 encodeRun(buffer, runValue, runLength); 133 encodeRun(buffer, runValue, runLength); 134 return buffer.toString(); 152 StringBuffer buffer = new StringBuffer(); 153 buffer.append((char) (a.length >> 16)); 154 buffer 180 encodeRun(StringBuffer buffer, short value, int length) argument 203 encodeRun(StringBuffer buffer, byte value, int length, byte[] state) argument 231 appendEncodedByte(StringBuffer buffer, byte value, byte[] state) argument [all...] |
/openjdk7/jdk/test/com/sun/nio/sctp/SctpMultiChannel/ |
H A D | Send.java | 87 ByteBuffer buffer = ByteBuffer.allocate(Util.LARGE_BUFFER); 97 buffer.put(Util.SMALL_MESSAGE.getBytes("ISO-8859-1")); 98 buffer.flip(); 99 int position = buffer.position(); 100 int remaining = buffer.remaining(); 102 debug("sending small message: " + buffer); 103 int sent = channel.send(buffer, info); 106 check(buffer.position() == (position + sent), 110 buffer.clear(); 111 info = channel.receive(buffer, nul [all...] |
/openjdk7/jaxp/src/com/sun/xml/internal/stream/writers/ |
H A D | XMLWriter.java | 46 * buffer and stores the reference to newly supplied <code>Writer</code> instance. 54 //keep the size of internal buffer more than 'size' required to avoid resizing 55 private XMLStringBuffer buffer = new XMLStringBuffer(6 * (1 << 11) ); // 6 KB field in class:XMLWriter 91 buffer.append((char)c); 120 //do not buffer the data but write the data straight to the underlying stream 122 //first write the data that may be present in the buffer 127 buffer.append(cbuf, off, len); 154 //do not buffer the data but write the data straight to the underlying stream - nb. 156 //first write the data that may be present in the buffer 161 buffer [all...] |
/openjdk7/jdk/src/macosx/native/jobjc/src/core/java/com/apple/jobjc/ |
H A D | NativeArgumentBuffer.java | 46 final NativeBuffer buffer; field in class:NativeArgumentBuffer 59 this.buffer = new NativeBuffer(BUF_SIZE); 60 this.buffer.buffer.order(ByteOrder.nativeOrder()); 63 this.retValPtr = buffer.bufferPtr; 69 argPtrsPtr = buffer.bufferPtr; 70 argValuesPtr = buffer.bufferPtr + ARG_VALS_OFFSET; 71 assert buffer.ptrInBounds(argValuesPtr); 76 assert buffer.ptrInBounds(argPtrsPtr); 83 assert buffer [all...] |
/openjdk7/jdk/src/share/classes/org/jcp/xml/dsig/internal/ |
H A D | DigesterOutputStream.java | 48 private boolean buffer = false; field in class:DigesterOutputStream 66 * @param buffer if true, caches the input bytes 68 public DigesterOutputStream(MessageDigest md, boolean buffer) { argument 70 this.buffer = buffer; 71 if (buffer) { 83 if (buffer) { 91 if (buffer) { 117 if (buffer) {
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/txw2/ |
H A D | Text.java | 37 protected final StringBuilder buffer = new StringBuilder(); field in class:Text 40 document.writeValue(obj,nsResolver,buffer);
|
/openjdk7/jdk/test/java/io/DataInputStream/ |
H A D | ReadFully.java | 34 byte[] buffer = new byte[100]; 42 dis.readFully(buffer, 0, -20);
|
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/ |
H A D | SctpSendFailed.java | 43 private ByteBuffer buffer; field in class:SctpSendFailed 50 ByteBuffer buffer, 57 this.buffer = buffer; 83 public ByteBuffer buffer() { method in class:SctpSendFailed 84 assert buffer != null; 85 return buffer; 104 sb.append(", buffer: ").append(buffer); 48 SctpSendFailed(int assocId, SocketAddress address, ByteBuffer buffer, int errorCode, int streamNumber) argument
|
/openjdk7/jdk/src/windows/native/sun/windows/ |
H A D | awt_Desktop.cpp | 56 LPTSTR buffer = NULL; local 64 (LPTSTR)&buffer, 68 if (buffer) { 69 jstring errmsg = JNU_NewStringPlatform(env, buffer); 70 LocalFree(buffer);
|
/openjdk7/jdk/src/share/classes/java/util/zip/ |
H A D | Adler32.java | 82 * Updates the checksum with the bytes from the specified buffer. 85 * buffer.{@link java.nio.Buffer#remaining() remaining()} 87 * buffer.{@link java.nio.Buffer#position() position()} 88 * Upon return, the buffer's position will be updated to its 91 * @param buffer the ByteBuffer to update the checksum with 93 private void update(ByteBuffer buffer) { argument 94 int pos = buffer.position(); 95 int limit = buffer.limit(); 100 if (buffer instanceof DirectBuffer) { 101 adler = updateByteBuffer(adler, ((DirectBuffer)buffer) [all...] |
/openjdk7/jdk/src/share/classes/sun/rmi/transport/tcp/ |
H A D | MultiplexOutputStream.java | 32 * internal buffer is full or the flush() method is called, at which 35 * requested by the remote endpoint (to prevent receive buffer from 50 /** output buffer */ 51 private byte buffer[]; field in class:MultiplexOutputStream 53 /** current position to write to in output buffer */ 77 * @param bufferLength length of output buffer 87 buffer = new byte[bufferLength]; 97 while (pos >= buffer.length) 99 buffer[pos ++] = (byte) b; 114 // if enough free space in output buffer, jus [all...] |
/openjdk7/jdk/src/share/classes/sun/invoke/anon/ |
H A D | ConstantPoolParser.java | 146 ByteBuffer buffer = ByteBuffer.wrap(classFile); 148 result[i] = (char) getUnsignedShort(buffer); 169 ByteBuffer buffer = ByteBuffer.wrap(classFile); 170 buffer.position(getStartOffset()); //skip header 174 parseConstantPool(buffer, values, visitor); 179 endOffset = buffer.position(); 182 secondHeader[i] = (char) getUnsignedShort(buffer); 194 private void parseConstantPool(ByteBuffer buffer, Object[] values, ConstantPoolVisitor visitor) throws InvalidConstantPoolFormatException { argument 196 byte tag = (byte) getUnsignedByte(buffer); 201 int utfLen = getUnsignedShort(buffer); 306 getUnsignedByte(ByteBuffer buffer) argument 310 getUnsignedShort(ByteBuffer buffer) argument 316 getUTF8(ByteBuffer buffer, int utfLen, char[] charArray) argument 330 getUTF8Extended(ByteBuffer buffer, int utfLimit, char[] charArray, int index) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/ |
H A D | AdobeMarkerSegment.java | 56 AdobeMarkerSegment(JPEGBuffer buffer) throws IOException { argument 57 super(buffer); 58 buffer.bufPtr += ID_SIZE; // Skip the id 59 version = (buffer.buf[buffer.bufPtr++] & 0xff) << 8; 60 version |= buffer.buf[buffer.bufPtr++] & 0xff; 61 flags0 = (buffer.buf[buffer.bufPtr++] & 0xff) << 8; 62 flags0 |= buffer [all...] |
H A D | DRIMarkerSegment.java | 45 DRIMarkerSegment(JPEGBuffer buffer) argument 47 super(buffer); 48 restartInterval = (buffer.buf[buffer.bufPtr++] & 0xff) << 8; 49 restartInterval |= buffer.buf[buffer.bufPtr++] & 0xff; 50 buffer.bufAvail -= length;
|