- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 82 for readString (0.79 seconds)
-
src/main/java/jcifs/internal/smb1/net/NetShareEnumResponse.java
final SmbShareInfo[] results = new SmbShareInfo[getNumEntries()]; for (int i = 0; i < getNumEntries(); i++) { results[i] = e = new SmbShareInfo(); e.netName = readString(buffer, bufferIndex, 13, false); bufferIndex += 14; e.type = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 2; int off = SMBUtil.readInt4(buffer, bufferIndex);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/NetServerEnum2Response.java
ServerInfo1 e = null; results = new ServerInfo1[numEntries]; for (int i = 0; i < numEntries; i++) { results[i] = e = new ServerInfo1(); e.name = readString(buffer, bufferIndex, 16, false); bufferIndex += 16; e.versionMajor = buffer[bufferIndex] & 0xFF; bufferIndex++; e.versionMinor = buffer[bufferIndex++] & 0xFF;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 4.5K 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/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndXResponse.java
* Fortunately we don't really need nativeFileSystem for anything. if( byteCount > bufferIndex - start ) { nativeFileSystem = readString( buffer, bufferIndex ); bufferIndex += stringWireLength( nativeFileSystem, bufferIndex ); } */ return bufferIndex - start; } @Override
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 2.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndXResponse.java
final int fsLen = this.byteCount - (bufferIndex - start); if (fsLen > 0 && fsLen < 256) { // Sanity check on length this.nativeFileSystem = readString(buffer, bufferIndex); bufferIndex += stringWireLength(this.nativeFileSystem, bufferIndex); } } catch (final Exception e) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.1K 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) -
internal/disk/stat_linux.go
} func readStat(fileName string) (stats []uint64, err error) { file, err := os.Open(fileName) if err != nil { return nil, err } defer file.Close() s, err := bufio.NewReader(file).ReadString('\n') if err != nil && !errors.Is(err, io.EOF) { return nil, err } statLine := strings.TrimSpace(s) for _, token := range strings.Fields(statLine) { ui64, err := strconv.ParseUint(token, 10, 64)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 4.8K bytes - Click Count (0)