Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for WriteBytes (0.21 sec)

  1. internal/grid/msg_gen.go

    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)
  2. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            write( tmp, 0, 4 );
        }
        public final void writeDouble( double v ) throws SmbException {
            Encdec.enc_doublebe( v, tmp, 0 );
            write( tmp, 0, 8 );
        }
        public final void writeBytes( String s ) throws SmbException {
            byte[] b = s.getBytes();
            write( b, 0, b.length );
        }
        public final void writeChars( String s ) throws SmbException {
            int clen = s.length();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  3. cmd/mrf_gen.go

    		err = msgp.WrapError(err, "VersionID")
    		return
    	}
    	// write "Versions"
    	err = en.Append(0xa8, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73)
    	if err != nil {
    		return
    	}
    	err = en.WriteBytes(z.Versions)
    	if err != nil {
    		err = msgp.WrapError(err, "Versions")
    		return
    	}
    	// write "SetIndex"
    	err = en.Append(0xa8, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78)
    	if err != nil {
    		return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java

        // TODO
        /*
        private File file1;
        @Override
        public void setUp() throws Exception {
            super.setUp();
            file1 = File.createTempFile("synonym", ".txt");
            FileUtil.writeBytes(file1.getAbsolutePath(),
                    "a1=>A1\nb1,b2 => B1\nc1 => C1, C2\nx1,X1\ny1, Y1, y2"
                            .getBytes(Constants.UTF_8));
            // TODO set up opensearch and dictionaryManager
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/CrawlingConfigHelperTest.java

        @Override
        public void setUp() throws Exception {
            super.setUp();
            final File propFile = File.createTempFile("system", ".properties");
            propFile.deleteOnExit();
            FileUtil.writeBytes(propFile.getAbsolutePath(), "".getBytes());
            ComponentUtil.register(new DynamicProperties(propFile), "systemProperties");
            crawlingConfigHelper = new CrawlingConfigHelper();
            crawlingConfigHelper.init();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/FileUtil.java

                    }
                }
                return new String(buf, 0, size);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        public static void writeBytes(final String pathname, final byte[] bytes) {
            try (FileOutputStream fos = OutputStreamUtil.create(new File(pathname))) {
                ChannelUtil.write(fos.getChannel(), ByteBuffer.wrap(bytes));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9K 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. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        @Override
        public final void writeDouble ( double v ) throws SmbException {
            Encdec.enc_doublebe(v, this.tmp, 0);
            write(this.tmp, 0, 8);
        }
    
    
        @Override
        public final void writeBytes ( String s ) throws SmbException {
            byte[] b = s.getBytes();
            write(b, 0, b.length);
        }
    
    
        @Override
        public final void writeChars ( String s ) throws SmbException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top