- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 37 for readString (0.07 seconds)
-
src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java
byte[] buffer = new byte[testString.length() + 1]; int len = smb.writeString(testString, buffer, 0); assertEquals(testString.length() + 1, len); String readString = smb.readString(buffer, 0); assertEquals(testString, readString); } @Test void testStringReadWriteUnicode() throws UnsupportedEncodingException { smb.useUnicode = true;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
// Use reflection to call protected readString method Method readStringMethod = getReadStringMethod(); String result = (String) readStringMethod.invoke(response, buffer, 10, 128, false); assertEquals(testString, result); } @Test @DisplayName("Test readString with null terminator in middle")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java
int actualResumeKey = SMBUtil.readInt4(buffer, 6); assertEquals(newResumeKey, actualResumeKey); // Check filename is updated (it's at the end after flags) String actualFilename = readString(buffer, 12, written - 12); assertEquals(newFilename, actualFilename); } @Test void testWriteSetupWireFormat() { // Test setup wire format writing
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.2K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
uee.printStackTrace(log); } } return dstIndex - start; } String readString(final byte[] src, final int srcIndex) { return readString(src, srcIndex, 256, useUnicode); } String readString(final byte[] src, int srcIndex, final int maxLen, final boolean useUnicode) { int len = 0; String str = null; try {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.7K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java
// Use reflection to call protected readString method Method readStringMethod = getReadStringMethod(); String result = (String) readStringMethod.invoke(response, buffer, 10, 128, false); assertEquals(testString, result); } @Test @DisplayName("Test readString with null terminator in middle")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 25.4K bytes - Click Count (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
PacDataInputStream pacStream = new PacDataInputStream(bais); String result = pacStream.readString(); assertEquals(testString, result); } @Test @DisplayName("Test PacDataInputStream readString with empty string") void testReadEmptyString() throws Exception { ByteArrayOutputStream baos = new ByteArrayOutputStream();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0) -
src/bytes/buffer.go
b.off = end b.lastRead = opRead return line, err } // ReadString reads until the first occurrence of delim in the input, // returning a string containing the data up to and including the delimiter. // If ReadString encounters an error before finding a delimiter, // it returns the data read before the error and the error itself (often [io.EOF]). // ReadString returns err != nil if and only if the returned data does not end // in delim.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Nov 14 19:01:17 GMT 2025 - 16.5K bytes - Click Count (0) -
src/bufio/bufio.go
} copy(buf[n:], frag) return buf, err } // ReadString reads until the first occurrence of delim in the input, // returning a string containing the data up to and including the delimiter. // If ReadString encounters an error before finding a delimiter, // it returns the data read before the error and the error itself (often io.EOF). // ReadString returns err != nil if and only if the returned data does not end in // delim.
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Feb 06 17:28:40 GMT 2026 - 22K bytes - Click Count (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
) } else if (gzippedLength != null) { logger.log("--> END ${request.method} (${buffer.size}-byte, $gzippedLength-gzipped-byte body)") } else { logger.log(buffer.readString(charset)) logger.log("--> END ${request.method} (${requestBody.contentLength()}-byte body)") } } } val startNs = System.nanoTime() val response: ResponseCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Nov 07 02:57:33 GMT 2025 - 11.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
* @param src source buffer * @param srcIndex starting index in the buffer * @return read string */ public String readString(final byte[] src, final int srcIndex) { return readString(src, srcIndex, 255, this.useUnicode); } /** * Reads a null-terminated string from the buffer with specified encoding * @param src source bufferCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 38.9K bytes - Click Count (0)