- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 395 for Britton (0.03 sec)
-
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
byte[] buffer = new byte[8]; byte[] original = buffer.clone(); // Act int written = resp.writeBytesWireFormat(buffer, index); // Assert assertEquals(0, written, "Should report 0 bytes written"); assertArrayEquals(original, buffer, "Buffer must remain unchanged"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2SetFileInformationTest.java
// 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]; // When int result = trans2SetFileInformation.writeDataWireFormat(dst, 0); // Then assertEquals(40, result); // Returns 40 bytes written } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/Encdec.java
* * @param s the short value to encode * @param dst the destination byte array * @param di the starting index in the destination array * @return the number of bytes written (2) */ public static int enc_uint16be(final short s, final byte[] dst, int di) { dst[di] = (byte) (s >> 8 & 0xFF); di++; dst[di] = (byte) (s & 0xFF); return 2; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NameServicePacketTest.java
packet.questionCount = 1; packet.answerCount = 2; packet.authorityCount = 3; packet.additionalCount = 4; int written = packet.writeHeaderWireFormat(dst, 0); assertEquals(NameServicePacket.HEADER_LENGTH, written); assertEquals((byte) 0x12, dst[0]); // nameTrnId assertEquals((byte) 0x34, dst[1]);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
Smb2LogoffRequest req = newRequest(); byte[] buf = new byte[offset + 8]; // extra space for safety // Act int written = req.writeBytesWireFormat(buf, offset); // Assert: should write exactly 4 bytes assertEquals(4, written, "Should report 4 bytes written"); // StructureSize (2 bytes, LE) == 4 assertEquals(4, SMBUtil.readInt2(buf, offset)); // Reserved (2 bytes, LE) == 0
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CountingOutputStream.java
import java.io.OutputStream; /** * An OutputStream that counts the number of bytes written. * * @author Chris Nokleberg * @since 1.0 */ @J2ktIncompatible @GwtIncompatible public final class CountingOutputStream extends FilterOutputStream { private long count; /** * Wraps another output stream, counting the number of bytes written. * * @param out the output stream to be wrapped */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.9K 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) -
src/main/java/jcifs/internal/smb1/com/SmbComWriteResponse.java
*/ public SmbComWriteResponse(final Configuration config) { super(config); } /** * Gets the number of bytes written. * * @return the count of bytes written */ public long getCount() { return this.count; } @Override protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) { return 0; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
src/archive/zip/writer.go
// underlying writer. It should be used when the zip data is appended to an // existing file, such as a binary executable. // It must be called before any data is written. func (w *Writer) SetOffset(n int64) { if w.cw.count != 0 { panic("zip: SetOffset called after data was written") } w.cw.count = n } // Flush flushes any buffered data to the underlying writer. // Calling Flush is not normally necessary; calling Close is sufficient.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jan 28 04:20:09 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponse.java
private int totalBytesWritten; /** * Gets the number of bytes written in the last chunk * @return the chunkBytesWritten */ public int getChunkBytesWritten() { return this.chunkBytesWritten; } /** * Gets the number of chunks successfully written * @return the chunksWritten */ public int getChunksWritten() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.6K bytes - Viewed (0)