- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 1,714 for writeFn (0.07 sec)
-
src/main/java/jcifs/internal/util/SMBUtil.java
public class SMBUtil { /** * Private constructor to prevent instantiation of utility class. */ private SMBUtil() { } /** * Writes a 16-bit integer value to a byte array in little-endian format * @param val the value to write * @param dst the destination byte array * @param dstIndex the starting index in the destination array */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java
byte[] buffer = new byte[1024]; int written = request.writeBytesWireFormat(buffer, 0); // Should write exactly 56 bytes (structure size without data) assertEquals(56, written); // Check structure size (first 2 bytes should be 57) assertEquals(57, (buffer[0] & 0xFF) | ((buffer[1] & 0xFF) << 8)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
// When int bytesWritten = request.writeBytesWireFormat(buffer, offset); // Then // The writeBytesWireFormat writes the structure and calculates padding // Base structure: 24 bytes, then pad8 alignment, then token: 5 bytes // Total bytes written includes padding for 8-byte alignment int expectedBytesWritten = 35; assertEquals(expectedBytesWritten, bytesWritten);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
request.setNotifyFlags(0x0001); request.setCompletionFilter(0x00000FFF); // When byte[] buffer = new byte[512]; int written = request.writeBytesWireFormat(buffer, 0); // Then assertEquals(32, written); // Verify complete structure assertEquals(32, SMBUtil.readInt2(buffer, 0)); // StructureSize
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt
@Throws(IOException::class) override fun writeTo(sink: BufferedSink) { val forwardingSink = object : ForwardingSink(sink) { private var totalBytesWritten: Long = 0 private var completed = false override fun write( source: Buffer, byteCount: Long, ) { super.write(source, byteCount) totalBytesWritten += byteCount
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 17:01:12 UTC 2025 - 3.8K bytes - Viewed (0) -
cmd/site-replication-metrics_gen.go
} // EncodeMsg implements msgp.Encodable func (z RStat) EncodeMsg(en *msgp.Writer) (err error) { // map header, size 2 // write "Count" err = en.Append(0x82, 0xa5, 0x43, 0x6f, 0x75, 0x6e, 0x74) if err != nil { return } err = en.WriteInt64(z.Count) if err != nil { err = msgp.WrapError(err, "Count") return } // write "Bytes" err = en.Append(0xa5, 0x42, 0x79, 0x74, 0x65, 0x73) if err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue Feb 06 06:00:45 UTC 2024 - 40.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt
assertFailsWith<IllegalStateException> { abort() } } private fun Editor.setString( index: Int, value: String, ) { newSink(index).buffer().use { writer -> writer.writeUtf8(value) } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 75.7K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java
// Write minimal PAC header dos.writeInt(Integer.reverseBytes(3)); // 3 buffers dos.writeInt(Integer.reverseBytes(PacConstants.PAC_VERSION)); // Write buffer entries dos.writeInt(Integer.reverseBytes(PacConstants.LOGON_INFO)); dos.writeInt(Integer.reverseBytes(10)); dos.writeLong(Long.reverseBytes(100));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 6.3K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
logger.fine(() -> ">>> " + body); connection.setDoOutput(true); try (BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(connection.getOutputStream(), encoding))) { writer.write(body); writer.flush(); } } else if (bodyStream != null) { logger.fine(() -> ">>> <binary>");
Registered: Thu Sep 04 15:34:10 UTC 2025 - Last Modified: Sat Jul 05 01:38:18 UTC 2025 - 17.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java
assertEquals(0, (dst[5] << 8) | (dst[4] & 0xFF)); } @Test void testWriteDataWireFormat() { // Given // writeInt8 writes 8 bytes but needs to access dst[dstIndex+7] // Total bytes written: 8+8+8+8+2+6=40 // But writeInt8 at position 34 needs to access position 34+7=41 // So we need at least 42 bytes in the array byte[] dst = new byte[42];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0)