Searched refs:buffer (Results 226 - 250 of 668) sorted by relevance

1234567891011>>

/openjdk7/jdk/src/share/native/sun/awt/libpng/
H A Dpngerror.c134 /* Utility to safely appends strings to a buffer. This never errors out so
138 png_safecat(png_charp buffer, size_t bufsize, size_t pos, argument
141 if (buffer != NULL && pos < bufsize)
145 buffer[pos++] = *string++;
147 buffer[pos] = '\0';
154 /* Utility to dump an unsigned value into a buffer, given a start pointer and
155 * and end pointer (which should point just *beyond* the end of the buffer!)
283 char buffer[PNG_NUMBER_BUFFER_SIZE]; local
284 png_warning_parameter(p, number, PNG_FORMAT_NUMBER(buffer, format, value));
293 char buffer[PNG_NUMBER_BUFFER_SIZ local
402 png_format_buffer(png_structp png_ptr, png_charp buffer, png_const_charp error_message) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/jgss/
H A DGSSToken.java169 * @param buffer the buffer to store the bytes into
174 public static final void readFully(InputStream is, byte[] buffer) argument
176 readFully(is, buffer, 0, buffer.length);
184 * @param buffer the buffer to store the bytes into
192 byte[] buffer, int offset, int len)
196 temp = is.read(buffer, offset, len);
191 readFully(InputStream is, byte[] buffer, int offset, int len) argument
/openjdk7/jdk/test/javax/sound/midi/Gervill/ModelByteBufferWavetable/
H A DGetChannels.java42 static ModelByteBuffer buffer; field in class:GetChannels
60 buffer = new ModelByteBuffer(test_byte_array);
77 AudioInputStream ais = new AudioInputStream(buffer.getInputStream(), format, testarray.length);
89 ModelByteBufferWavetable wavetable = new ModelByteBufferWavetable(buffer,format1,10f);
92 wavetable = new ModelByteBufferWavetable(buffer,format2,10f);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/
H A DMetalBumps.java54 protected BumpBuffer buffer; field in class:MetalBumps
75 for (BumpBuffer buffer : buffers) {
76 if (buffer.hasSameConfiguration(gc, topColor, shadowColor, backColor)) {
77 return buffer;
80 BumpBuffer buffer = new BumpBuffer(gc, topColor, shadowColor, backColor);
81 buffers.add(buffer);
82 return buffer;
109 if ((buffer == null) || !buffer.hasSameConfiguration(gc, topColor, shadowColor, backColor)) {
110 buffer
[all...]
/openjdk7/hotspot/src/share/vm/utilities/
H A Dostream.cpp82 // Execute a vsprintf, using the given buffer if necessary.
84 const char* outputStream::do_vsnprintf(char* buffer, size_t buflen, argument
100 } else if (vsnprintf(buffer, buflen, format, ap) >= 0) {
101 result = buffer;
105 result = buffer;
107 buffer[result_len] = 0;
110 if (result != buffer) {
111 strncpy(buffer, result, buflen);
112 result = buffer;
114 buffer[result_le
121 char buffer[O_BUFLEN]; local
131 char buffer[O_BUFLEN]; local
141 char buffer[O_BUFLEN]; local
148 char buffer[O_BUFLEN]; local
229 char buffer[buffer_length]; local
787 char buffer[O_BUFLEN+100]; local
938 staticBufferStream(char* buffer, size_t buflen, outputStream *outer_stream) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/policy/sourcemodel/
H A DAssertionData.java380 * A helper method that appends indented string representation of this instance to the input string buffer.
383 * @param buffer buffer to be used for appending string representation of this instance
384 * @return modified buffer containing new string representation of the instance
386 public StringBuffer toString(final int indentLevel, final StringBuffer buffer) { argument
391 buffer.append(indent);
393 buffer.append("assertion data {");
395 buffer.append("assertion parameter data {");
397 buffer.append(PolicyUtils.Text.NEW_LINE);
399 buffer
[all...]
/openjdk7/jdk/src/solaris/native/com/sun/media/sound/
H A DPLATFORM_API_BsdOS_ALSA_PCMUtils.c172 char buffer[300]; local
186 buffer[0]=' '; buffer[1]='[';
187 getDeviceStringFromDeviceID(&buffer[2], deviceID, usePlugHw, ALSA_PCM);
188 strcat(buffer, "]");
193 desc->strLen - strlen(buffer));
194 strncat(desc->name, buffer, desc->strLen - strlen(desc->name));
215 char buffer[200]; local
219 getDeviceStringFromDeviceID(buffer, deviceID, !hardware, ALSA_PCM);
221 TRACE1("Opening ALSA device %s\n", buffer);
[all...]
H A DPLATFORM_API_LinuxOS_ALSA_PCMUtils.c172 char buffer[300]; local
186 buffer[0]=' '; buffer[1]='[';
187 getDeviceStringFromDeviceID(&buffer[2], deviceID, usePlugHw, ALSA_PCM);
188 strcat(buffer, "]");
193 desc->strLen - strlen(buffer));
194 strncat(desc->name, buffer, desc->strLen - strlen(desc->name));
215 char buffer[200]; local
219 getDeviceStringFromDeviceID(buffer, deviceID, !hardware, ALSA_PCM);
221 TRACE1("Opening ALSA device %s\n", buffer);
[all...]
/openjdk7/jdk/src/share/native/sun/awt/splashscreen/
H A Dsplashscreen_jpeg.c40 JOCTET *buffer; /* start of buffer */ member in struct:__anon795
63 nbytes = src->stream->read(src->stream, src->buffer, INPUT_BUF_SIZE);
70 src->buffer[0] = (JOCTET) 0xFF;
71 src->buffer[1] = (JOCTET) JPEG_EOI;
75 src->pub.next_input_byte = src->buffer;
112 src->buffer = (JOCTET *)
125 src->pub.next_input_byte = NULL; /* until buffer loaded */
132 JSAMPARRAY buffer; local
178 buffer
[all...]
/openjdk7/hotspot/src/share/vm/code/
H A DicBuffer.cpp69 assert(this == ICStub_from_destination_address(ic->stub_address()), "wrong owner of ic buffer");
118 ICStub* ic_stub = (ICStub*)buffer()->request_committed (ic_stub_code_size());
133 ICStub* ic_stub = (ICStub*)buffer()->request_committed(ic_stub_code_size());
137 // we ran out of inline cache buffer space; must enter safepoint.
157 if (buffer()->number_of_stubs() > 1) {
159 tty->print_cr("[updating inline caches with %d stubs]", buffer()->number_of_stubs());
161 buffer()->remove_all();
168 return buffer()->contains(instruction_address);
173 return buffer()->number_of_stubs() == 1; // always has sentinel
/openjdk7/hotspot/src/os/posix/vm/
H A Dos_posix.cpp36 void os::check_or_create_dump(void* exceptionRecord, void* contextRecord, char* buffer, size_t bufferSize) { argument
41 n = get_core_path(buffer, bufferSize);
44 jio_snprintf(buffer + n, bufferSize - n, "/core or core.%d (may not exist)", current_process_id());
49 jio_snprintf(buffer + n, bufferSize - n, "/core or core.%d", current_process_id());
53 jio_snprintf(buffer, bufferSize, "Core dumps have been disabled. To enable core dumping, try \"ulimit -c unlimited\" before starting Java again");
57 jio_snprintf(buffer + n, bufferSize - n, "/core or core.%d (max size %lu kB). To ensure a full core dump, try \"ulimit -c unlimited\" before starting Java again", current_process_id(), (unsigned long)(rlim.rlim_cur >> 10));
62 VMError::report_coredump_status(buffer, success);
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/
H A DPerfDataBufferImpl.java37 * PerfData instrumentation buffer.
46 * The buffer containing the instrumentation data.
48 protected ByteBuffer buffer; field in class:PerfDataBufferImpl
51 * A Map of monitor objects found in the instrumentation buffer.
56 * The Local Java Virtual Machine Identifier for this buffer.
75 * @param buffer the ByteBuffer containing the instrumentation data.
77 * instrumentation buffer.
79 protected PerfDataBufferImpl(ByteBuffer buffer, int lvmid) { argument
80 this.buffer = buffer;
[all...]
/openjdk7/jdk/src/share/classes/com/sun/imageio/plugins/jpeg/
H A DJPEGMetadata.java153 JPEGBuffer buffer = new JPEGBuffer(iis);
155 buffer.loadBuf(0);
158 if (((buffer.buf[0] & 0xff) != 0xff)
159 || ((buffer.buf[1] & 0xff) != JPEG.SOI)
160 || ((buffer.buf[2] & 0xff) != 0xff)) {
165 buffer.bufAvail -=2; // Next byte should be the ff before a marker
166 buffer.bufPtr = 2;
171 buffer.loadBuf(1);
174 buffer.print(10);
176 buffer
[all...]
/openjdk7/jdk/src/macosx/classes/apple/laf/
H A DJRSUIControl.java72 final ByteBuffer buffer; field in class:JRSUIControl.ThreadLocalByteBuffer
76 buffer = ByteBuffer.allocateDirect(NIO_BUFFER_SIZE);
77 buffer.order(ByteOrder.nativeOrder());
78 ptr = getPtrOfBuffer(buffer);
132 final ByteBuffer buffer = localByteBuffer.buffer;
133 buffer.rewind();
136 final int changeIndex = buffer.position();
140 buffer.putLong(key.getConstantPtr());
141 buffer
162 handleBufferOverflow(final ByteBuffer buffer, final int changeIndex) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/tty/
H A DBreakpointSpec.java157 StringBuffer buffer = new StringBuffer(refSpec.toString());
159 buffer.append('.');
160 buffer.append(methodId);
163 buffer.append('(');
166 buffer.append(',');
168 buffer.append(arg);
171 buffer.append(")");
174 buffer.append(':');
175 buffer.append(lineNumber);
177 return MessageOutput.format("breakpoint", buffer
[all...]
/openjdk7/jdk/src/macosx/classes/sun/lwawt/macosx/
H A DCImage.java35 private static native long nativeCreateNSImageFromArray(int[] buffer, int w, int h); argument
40 private static native void nativeCopyNSImageIntoArray(long image, int[] buffer, int w, int h); argument
132 int[] buffer = imageToArray(image, false);
134 if (buffer == null) {
138 return new CImage(nativeCreateNSImageFromArray(buffer, image.getWidth(null),
144 int[] buffer = imageToArray(image, true);
145 if (buffer == null) {
148 return new CImage(nativeCreateNSImageFromArray(buffer, image.getWidth(null), image.getHeight(null)));
177 final int[] buffer = SunWritableRaster.stealData(dbi, 0);
178 nativeCopyNSImageIntoArray(ptr, buffer,
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/dom/
H A DNodeCounter.java307 final StringBuilder buffer = _tempBuffer;
310 if (_separFirst) buffer.append((String)_separToks.elementAt(0));
316 if (!isFirst) buffer.append((String) _separToks.elementAt(s++));
317 formatValue(value, (String)_formatToks.elementAt(t++), buffer);
326 if (_separLast) buffer.append((String)_separToks.lastElement());
327 return buffer.toString();
335 private void formatValue(int value, String format, StringBuilder buffer) { argument
341 StringBuilder temp = buffer;
360 buffer.append(_groupSep);
362 buffer
[all...]
/openjdk7/jdk/src/share/classes/com/sun/media/sound/
H A DSoftFilter.java150 float[] buffer = sbuffer.array();
169 int len = buffer.length;
202 float x = buffer[i];
210 buffer[i] = (yy * gain) * wet + (xx) * (1 - wet);
219 float x = buffer[i];
227 buffer[i] = (yy * gain) * wet + (xx) * (1 - wet);
241 float x = buffer[i];
249 buffer[i] = (yy * gain) * wet + (xx) * (1 - wet);
415 float[] buffer = sbuffer.array();
435 int len = buffer
[all...]
/openjdk7/jdk/src/share/classes/java/text/
H A DRuleBasedBreakIterator.java378 byte[] buffer = readFile(datafile);
381 int stateTableLength = BreakIterator.getInt(buffer, 0);
382 int backwardsStateTableLength = BreakIterator.getInt(buffer, 4);
383 int endStatesLength = BreakIterator.getInt(buffer, 8);
384 int lookaheadStatesLength = BreakIterator.getInt(buffer, 12);
385 int BMPdataLength = BreakIterator.getInt(buffer, 16);
386 int nonBMPdataLength = BreakIterator.getInt(buffer, 20);
387 int additionalDataLength = BreakIterator.getInt(buffer, 24);
388 checksum = BreakIterator.getLong(buffer, 28);
394 stateTable[i] = BreakIterator.getShort(buffer, offse
[all...]
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11RSACipher.java88 private byte[] buffer; field in class:P11RSACipher
221 buffer = new byte[n];
247 int outLen = buffer.length;
251 (session.id(), buffer, 0, inLen, buffer, 0, outLen);
255 (session.id(), buffer, 0, inLen, buffer, 0, outLen);
264 (session.id(), buffer, 0, inLen, buffer, 0, outLen);
320 System.arraycopy(in, inOfs, buffer, bufOf
[all...]
/openjdk7/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/compiler/
H A DAttributeValueTemplate.java73 * second pass splits up the resulting buffer into literal and non-literal
87 StringBuffer buffer = new StringBuffer();
107 buffer.append(lookahead); // replace {{ by {
111 buffer.append(DELIMITER);
128 buffer.append(lookahead); // replace }} by }
137 buffer.append(DELIMITER);
142 buffer.append(t);
158 buffer.append(t);
172 buffer.append(t);
175 buffer
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/stream/buffer/
H A DAbstractCreator.java26 package com.sun.xml.internal.stream.buffer;
36 public void setXMLStreamBuffer(MutableXMLStreamBuffer buffer) { argument
37 if (buffer == null) {
38 throw new NullPointerException("buffer cannot be null");
40 setBuffer(buffer);
53 * Should be called whenever a new tree is stored on the buffer.
59 protected final void setBuffer(MutableXMLStreamBuffer buffer) { argument
60 _buffer = buffer;
/openjdk7/jdk/test/sun/net/www/http/ChunkedOutputStream/
H A DcheckError.java55 byte[] buffer = null;
79 buffer = getThickBuffer(bufferSize);
92 toServer.write(buffer, 0, byteAtOnce);
130 byte[] buffer = new byte[size];
136 buffer[i] = (byte )s.charAt(0);
140 return buffer;
/openjdk7/jdk/src/share/classes/java/util/jar/
H A DAttributes.java302 StringBuffer buffer = new StringBuffer(
304 buffer.append(": ");
311 buffer.append(value);
313 buffer.append("\r\n");
314 Manifest.make72Safe(buffer);
315 os.writeBytes(buffer.toString());
349 StringBuffer buffer = new StringBuffer(name);
350 buffer.append(": ");
357 buffer.append(value);
359 buffer
[all...]
/openjdk7/hotspot/src/cpu/sparc/vm/
H A Druntime_sparc.cpp77 CodeBuffer buffer("exception_blob", 600+pad, 512);
78 MacroAssembler* masm = new MacroAssembler(&buffer);
158 _exception_blob = ExceptionBlob::create(&buffer, oop_maps, framesize_in_words);

Completed in 208 milliseconds

1234567891011>>