Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for writeByte (0.3 sec)

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

        /* Write out various test values in LITTLE ENDIAN FORMAT */
        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);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteArrayDataOutput.java

      @Override
      void write(int b);
    
      @Override
      void write(byte b[]);
    
      @Override
      void write(byte b[], int off, int len);
    
      @Override
      void writeBoolean(boolean v);
    
      @Override
      void writeByte(int v);
    
      @Override
      void writeShort(int v);
    
      @Override
      void writeChar(int v);
    
      @Override
      void writeInt(int v);
    
      @Override
      void writeLong(long v);
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/LittleEndianDataOutputStreamTest.java

        /* Write out various test values in LITTLE ENDIAN FORMAT */
        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);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java

      }
    
      @Override
      public void writeByte(int v) throws IOException {
        ((DataOutputStream) out).writeByte(v);
      }
    
      /**
       * @deprecated The semantics of {@code writeBytes(String s)} are considered dangerous. Please use
       *     {@link #writeUTF(String s)}, {@link #writeChars(String s)} or another write method instead.
       */
      @Deprecated
      @Override
      public void writeBytes(String s) throws IOException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 5.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        /* Write out various test values NORMALLY */
        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);
    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)
  6. android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        /* Write out various test values NORMALLY */
        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);
    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)
  7. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        out.write(bytes);
        assertThat(out.toByteArray()).isEqualTo(bytes);
      }
    
      public void testNewDataOutput_writeByte() {
        ByteArrayDataOutput out = ByteStreams.newDataOutput();
        out.write(0x12);
        out.writeByte(0x34);
        assertThat(out.toByteArray()).isEqualTo(new byte[] {0x12, 0x34});
      }
    
      public void testNewDataOutput_writeByteOffset() {
    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)
  8. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        out.write(bytes);
        assertThat(out.toByteArray()).isEqualTo(bytes);
      }
    
      public void testNewDataOutput_writeByte() {
        ByteArrayDataOutput out = ByteStreams.newDataOutput();
        out.write(0x12);
        out.writeByte(0x34);
        assertThat(out.toByteArray()).isEqualTo(new byte[] {0x12, 0x34});
      }
    
      public void testNewDataOutput_writeByteOffset() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/ByteStreams.java

          }
        }
    
        @Override
        public void writeByte(int v) {
          try {
            output.writeByte(v);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        @Override
        public void writeBytes(String s) {
          try {
            output.writeBytes(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)
  10. android/guava-tests/test/com/google/common/io/FilesTest.java

        Files.copy(i18nFile, temp);
        assertTrue(Files.equal(i18nFile, temp));
    
        Files.copy(asciiFile, temp);
        RandomAccessFile rf = new RandomAccessFile(temp, "rw");
        rf.writeByte(0);
        rf.close();
        assertEquals(asciiFile.length(), temp.length());
        assertFalse(Files.equal(asciiFile, temp));
    
        assertTrue(Files.asByteSource(asciiFile).contentEquals(Files.asByteSource(asciiFile)));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
Back to top