Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for writeChar (0.34 sec)

  1. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        out.writeBoolean(false);
        byte[] expected = {(byte) 1, (byte) 0};
        assertThat(out.toByteArray()).isEqualTo(expected);
      }
    
      public void testNewDataOutput_writeChar() {
        ByteArrayDataOutput out = ByteStreams.newDataOutput();
        out.writeChar('a');
        assertThat(out.toByteArray()).isEqualTo(new byte[] {0, 97});
      }
    
      // Hardcoded because of Android problems. See testUtf16Expected.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        out.write(new byte[] {-100, 100});
        out.writeBoolean(true);
        out.writeBoolean(false);
        out.writeByte(100);
        out.writeByte(-100);
        out.writeByte((byte) 200);
        out.writeChar('a');
        out.writeShort((short) -30000);
        out.writeShort((short) 50000);
        out.writeInt(0xCAFEBABE);
        out.writeLong(0xDEADBEEFCAFEBABEL);
        out.writeUTF("Herby Derby");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        out.write(new byte[] {-100, 100});
        out.writeBoolean(true);
        out.writeBoolean(false);
        out.writeByte(100);
        out.writeByte(-100);
        out.writeByte((byte) 200);
        out.writeChar('a');
        out.writeShort((short) -30000);
        out.writeShort((short) 50000);
        out.writeInt(0xCAFEBABE);
        out.writeLong(0xDEADBEEFCAFEBABEL);
        out.writeUTF("Herby Derby");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        out.writeBoolean(false);
        byte[] expected = {(byte) 1, (byte) 0};
        assertThat(out.toByteArray()).isEqualTo(expected);
      }
    
      public void testNewDataOutput_writeChar() {
        ByteArrayDataOutput out = ByteStreams.newDataOutput();
        out.writeChar('a');
        assertThat(out.toByteArray()).isEqualTo(new byte[] {0, 97});
      }
    
      // Hardcoded because of Android problems. See testUtf16Expected.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (1)
  5. android/guava/src/com/google/common/io/ByteStreams.java

          }
        }
    
        @Override
        public void writeChar(int v) {
          try {
            output.writeChar(v);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        @Override
        public void writeChars(String s) {
          try {
            output.writeChars(s);
          } catch (IOException impossible) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
Back to top