Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for WriteBytes (0.07 sec)

  1. internal/store/queuestore.go

    	// Marshalls the item.
    	eventData, err := json.Marshal(item)
    	if err != nil {
    		return err
    	}
    	return store.writeBytes(key, eventData)
    }
    
    // writeBytes - writes bytes to the directory.
    func (store *QueueStore[I]) writeBytes(key Key, b []byte) (err error) {
    	path := filepath.Join(store.directory, key.String())
    
    	if key.Compress {
    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. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java

            indexFile.deleteOnExit();
            FileUtil.writeBytes(indexFile.getAbsolutePath(), content.getBytes("UTF-8"));
    
            for (int i = 1; i <= 10; i++) {
                final File file = new File(dir, "file" + count + "-" + i + ".html");
                file.deleteOnExit();
                FileUtil.writeBytes(file.getAbsolutePath(), content.getBytes("UTF-8"));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. cmd/bucket-metadata_gen.go

    	if err != nil {
    		return
    	}
    	err = en.WriteBytes(z.PolicyConfigJSON)
    	if err != nil {
    		err = msgp.WrapError(err, "PolicyConfigJSON")
    		return
    	}
    	// write "NotificationConfigXML"
    	err = en.Append(0xb5, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x58, 0x4d, 0x4c)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes(z.NotificationConfigXML)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/LittleEndianDataOutputStream.java

      }
    
      /**
       * @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 {
        ((DataOutputStream) out).writeBytes(s);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 12:34:49 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2_gen.go

    	err = en.Append(0xa2, 0x49, 0x44)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes((z.VersionID)[:])
    	if err != nil {
    		err = msgp.WrapError(err, "VersionID")
    		return
    	}
    	// write "DDir"
    	err = en.Append(0xa4, 0x44, 0x44, 0x69, 0x72)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes((z.DataDir)[:])
    	if err != nil {
    		err = msgp.WrapError(err, "DataDir")
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  6. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/AnalyzeAndShade.kt

                            )
    
                            classesDir.resolve(details.outputClassFilename).apply {
                                parentFile.mkdirs()
                                writeBytes(classWriter.toByteArray())
                            }
                        } catch (exception: Exception) {
                            throw ClassAnalysisException("Could not transform class from ${file.toFile()}", exception)
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Oct 28 12:55:30 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/ByteStreams.java

          try {
            output.writeByte(v);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        @Override
        public void writeBytes(String s) {
          try {
            output.writeBytes(s);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
        @Override
        public void writeChar(int v) {
          try {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  8. cmd/storage-datatypes_gen.go

    		err = msgp.WrapError(err, "ReplicationState")
    		return
    	}
    	if z.Data == nil { // allownil: if nil
    		err = en.WriteNil()
    		if err != nil {
    			return
    		}
    	} else {
    		err = en.WriteBytes(z.Data)
    		if err != nil {
    			err = msgp.WrapError(err, "Data")
    			return
    		}
    	}
    	err = en.WriteInt(z.NumVersions)
    	if err != nil {
    		err = msgp.WrapError(err, "NumVersions")
    		return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 150.2K bytes
    - Viewed (0)
  9. src/bufio/bufio_test.go

    	}
    }
    
    type readFromWriter struct {
    	buf           []byte
    	writeBytes    int
    	readFromBytes int
    }
    
    func (w *readFromWriter) Write(p []byte) (int, error) {
    	w.buf = append(w.buf, p...)
    	w.writeBytes += len(p)
    	return len(p), nil
    }
    
    func (w *readFromWriter) ReadFrom(r io.Reader) (int64, error) {
    	b, err := io.ReadAll(r)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v1_gen.go

    	if err != nil {
    		err = msgp.WrapError(err, "Algorithm")
    		return
    	}
    	// write "Hash"
    	err = en.Append(0xa4, 0x48, 0x61, 0x73, 0x68)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes(z.Hash)
    	if err != nil {
    		err = msgp.WrapError(err, "Hash")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    func (z *ChecksumInfo) MarshalMsg(b []byte) (o []byte, err error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 41.2K bytes
    - Viewed (0)
Back to top