Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,503 for write2 (0.11 sec)

  1. internal/store/queuestore.go

    	store.entries[key.String()] = time.Now().UnixNano()
    
    	return
    }
    
    // write - writes an item to the directory.
    func (store *QueueStore[I]) write(key Key, item I) error {
    	// Marshalls the item.
    	eventData, err := json.Marshal(item)
    	if err != nil {
    		return err
    	}
    	return store.writeBytes(key, eventData)
    }
    
    // writeBytes - writes bytes to the directory.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt

        this.connectionType = mode.second
    
        if (connectionType == H2) {
          platform.assumeHttp2Support()
        }
    
        // Sockets on some platforms can have large buffers that mean writes do not block when
        // required. These socket factories explicitly set the buffer sizes on sockets created.
        server = MockWebServer()
        server.serverSocketFactory =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/CountingOutputStreamTest.java

        counter.write(data);
        written += 10;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 0, 5);
        written += 5;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
        counter.write(data, 2, 5);
        written += 5;
        assertEquals(written, out.size());
        assertEquals(written, counter.getCount());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. internal/ringbuffer/ring_buffer_test.go

    				t.Fatalf("write failed: %v", err)
    			}
    			wroteBytes += n
    			wrote.Write(buf[:n])
    			debugln("WRITE 4\t", n, wroteBytes)
    
    			// TryWriteByte
    			err = rb.TryWriteByte(buf[0])
    			if err != nil && err != ErrAcquireLock && err != ErrTooMuchDataToWrite && err != ErrIsFull {
    				t.Fatalf("write failed: %v", err)
    			}
    			if err == nil {
    				wroteBytes++
    				wrote.Write(buf[:1])
    				debugln("WRITE 5\t", 1, wroteBytes)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  5. cmd/erasure-server-pool-rebalance_gen.go

    func (z rebalanceInfo) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 3
    	// write "startTs"
    	err = en.Append(0x83, 0xa7, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteTime(z.StartTime)
    	if err != nil {
    		err = msgp.WrapError(err, "StartTime")
    		return
    	}
    	// write "stopTs"
    	err = en.Append(0xa6, 0x73, 0x74, 0x6f, 0x70, 0x54, 0x73)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  6. compat/maven-model/src/test/java/org/apache/maven/model/v4/ModelXmlTest.java

        }
    
        String toXml(Model model) throws IOException, XMLStreamException {
            StringWriter sw = new StringWriter();
            MavenStaxWriter writer = new MavenStaxWriter();
            writer.setAddLocationInformation(false);
            writer.write(sw, model);
            return sw.toString();
        }
    
        Model fromXml(String xml) throws XMLStreamException {
            return new MavenStaxReader().read(new StringReader(xml));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/CharSourceTester.java

        Reader reader = source.openStream();
    
        StringWriter writer = new StringWriter();
        char[] buf = new char[64];
        int read;
        while ((read = reader.read(buf)) != -1) {
          writer.write(buf, 0, read);
        }
        reader.close();
        writer.close();
    
        assertExpectedString(writer.toString());
      }
    
      public void testOpenBufferedStream() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. internal/grid/msg_gen.go

    }
    
    // EncodeMsg implements msgp.Encodable
    func (z *connectReq) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 4
    	// write "ID"
    	err = en.Append(0x84, 0xa2, 0x49, 0x44)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes((z.ID)[:])
    	if err != nil {
    		err = msgp.WrapError(err, "ID")
    		return
    	}
    	// write "Host"
    	err = en.Append(0xa4, 0x48, 0x6f, 0x73, 0x74)
    	if err != nil {
    		return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  9. src/main/webapp/images/glyphicons-halflings-white.png

    glyphicons-halflings-white.png...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Sep 14 06:00:28 UTC 2013
    - 8.6K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/test/java/org/apache/maven/model/inheritance/DefaultInheritanceAssemblerTest.java

            Model assembled = assembler.assembleModelInheritance(child, parent, null, problems);
    
            // write baseName + "-actual"
            File actual = new File(
                    "target/test-classes/poms/inheritance/" + baseName + (fromRepo ? "-build" : "-repo") + "-actual.xml");
            writer.write(actual, null, assembled);
    
            // check with getPom( baseName + "-expected" )
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top