- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 317 for bufA (0.02 seconds)
-
src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java
int off = 0; assertEquals(65535, SMBUtil.readInt2(buf, off)); off += 2; assertEquals(65535, SMBUtil.readInt2(buf, off)); off += 2; assertEquals(0, SMBUtil.readInt2(buf, off)); off += 2; assertEquals(0x12345678, SMBUtil.readInt4(buf, off)); off += 4; assertEquals(blob.length, SMBUtil.readInt2(buf, off)); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.4K bytes - Click Count (0) -
src/archive/zip/example_test.go
import ( "archive/zip" "bytes" "compress/flate" "fmt" "io" "log" "os" ) func ExampleWriter() { // Create a buffer to write our archive to. buf := new(bytes.Buffer) // Create a new zip archive. w := zip.NewWriter(buf) // Add some files to the archive. var files = []struct { Name, Body string }{ {"readme.txt", "This archive contains some text files."},
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Jan 27 00:22:03 GMT 2016 - 2K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
return resp.getResponseLength(); } final SmbPipeOutputStream out = getOutput(); final SmbPipeInputStream in = getInput(); out.write(buf, off, length); return in.read(inB); } } @Override
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 10.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java
assertEquals(4, numOfByteRead); assertEquals(expectedHash, in.hash()); } public void testHash_hashesCorrectlyReadOutOfBound() throws Exception { HashCode expectedHash = sha512().hashBytes(testBytes); HashingInputStream in = new HashingInputStream(sha512(), buffer); byte[] buf = new byte[100]; int numOfByteRead = in.read(buf, 0, buf.length);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 5.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashingInputStreamTest.java
assertEquals(4, numOfByteRead); assertEquals(expectedHash, in.hash()); } public void testHash_hashesCorrectlyReadOutOfBound() throws Exception { HashCode expectedHash = sha512().hashBytes(testBytes); HashingInputStream in = new HashingInputStream(sha512(), buffer); byte[] buf = new byte[100]; int numOfByteRead = in.read(buf, 0, buf.length);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 5.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/dcerpc/DcerpcMessageTest.java
buf.enc_ndr_small(0); // flags buf.enc_ndr_long(0x00000010); // data representation buf.enc_ndr_short(20); // length buf.enc_ndr_short(0); // auth length buf.enc_ndr_long(0); // call_id // Response body buf.enc_ndr_long(4); // alloc_hint buf.enc_ndr_short(0); // context_id buf.enc_ndr_short(0); // cancel_count buf.enc_ndr_small(0xAB); // test data for decode_out
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 7K bytes - Click Count (0) -
src/main/java/org/codelibs/core/xml/DomUtil.java
assertArgumentNotNull("element", element); assertArgumentNotNull("buf", buf); final String tag = element.getTagName(); buf.append('<'); buf.append(tag); appendAttrs(element.getAttributes(), buf); buf.append('>'); appendChildren(element.getChildNodes(), buf); buf.append("</"); buf.append(tag);
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 10.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTester.java
} public void testOpenStream() throws IOException { Reader reader = source.openStream(); StringWriter writer = new StringWriter(); char[] buf = new char[64]; int read; while ((read = reader.read(buf)) != -1) { writer.write(buf, 0, read); } reader.close(); writer.close(); assertExpectedString(writer.toString()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 7.4K bytes - Click Count (0) -
src/main/java/jcifs/smb/MIEName.java
if (buf.length < i + NAME_LEN_SIZE) { throw new IllegalArgumentException(); } len = 0xff000000 & buf[i++] << 24; len |= 0x00ff0000 & buf[i++] << 16; len |= 0x0000ff00 & buf[i++] << 8; len |= 0x000000ff & buf[i++]; // NAME if (buf.length < i + len) { throw new IllegalArgumentException(); } this.name = new String(buf, i, len);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 3.5K bytes - Click Count (0) -
cmd/xl-storage-format-utils.go
var fi FileInfo var err error var inData xlMetaInlineData if buf, data, e := isIndexedMetaV2(xlMetaBuf); e != nil { return FileInfo{}, e } else if buf != nil { inData = data fi, err = buf.ToFileInfo(volume, path, versionID, true) if len(buf) != 0 && errors.Is(err, errFileNotFound) { // This special case is needed to handle len(xlMeta.versions) == 0 return FileInfo{
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Aug 08 15:29:58 GMT 2024 - 5.5K bytes - Click Count (0)