- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for readChar (0.06 sec)
-
src/main/java/jcifs/pac/PacDataInputStream.java
/** * Reads a 16-bit character value with proper alignment. * @return the character value * @throws IOException if an I/O error occurs */ public char readChar() throws IOException { align(2); return this.dis.readChar(); } /** * Reads a single byte value. * @return the byte value * @throws IOException if an I/O error occurs */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacDataInputStreamTest.java
public void testReadChar() throws IOException { // 0x0041 is 'A' byte[] data = new byte[] { 0x00, 0x41, 0x00, 0x00 }; PacDataInputStream pdis = createInputStream(data); assertEquals('A', pdis.readChar()); } @Test public void testReadByte() throws IOException { byte[] data = new byte[] { 0x7F }; PacDataInputStream pdis = createInputStream(data);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java
if (read(tmp, 0, 2) < 0) { throw new SmbException("EOF"); } return Encdec.dec_uint16be(tmp, 0) & 0xFFFF; } @Override public final char readChar() throws SmbException { if (read(tmp, 0, 2) < 0) { throw new SmbException("EOF"); } return (char) Encdec.dec_uint16be(tmp, 0); } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
}).when(raf).read(any(byte[].class), anyInt(), eq(2)); assertEquals(0x1234, raf.readUnsignedShort()); assertEquals((short) 0x1234, raf.readShort()); assertEquals((char) 0x1234, raf.readChar()); } @Test @DisplayName("readInt/Long/Float/Double: big-endian decoding") void read_multiByteVariants() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteStreams.java
try { return input.readUnsignedShort(); } catch (IOException e) { throw new IllegalStateException(e); } } @Override public char readChar() { try { return input.readChar(); } catch (IOException e) { throw new IllegalStateException(e); } } @Override public int readInt() { try {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbRandomAccessFile.java
if (read(this.tmp, 0, 2) < 0) { throw new SmbEndOfFileException(); } return Encdec.dec_uint16be(this.tmp, 0) & 0xFFFF; } @Override public final char readChar() throws SmbException { if (read(this.tmp, 0, 2) < 0) { throw new SmbEndOfFileException(); } return (char) Encdec.dec_uint16be(this.tmp, 0); } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
try { for (int i = 0; i < iterations; i++) { // This would cause ConcurrentModificationException with ArrayList session.getSmbTree("readshare", null); successCount.incrementAndGet(); } } catch (Exception e) { exceptions.add(e); } finally { endLatch.countDown();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0)