Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for writeBuf (0.06 sec)

  1. src/archive/zip/writer.go

    	return nil
    }
    
    type writeBuf []byte
    
    func (b *writeBuf) uint8(v uint8) {
    	(*b)[0] = v
    	*b = (*b)[1:]
    }
    
    func (b *writeBuf) uint16(v uint16) {
    	binary.LittleEndian.PutUint16(*b, v)
    	*b = (*b)[2:]
    }
    
    func (b *writeBuf) uint32(v uint32) {
    	binary.LittleEndian.PutUint32(*b, v)
    	*b = (*b)[4:]
    }
    
    func (b *writeBuf) uint64(v uint64) {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jan 28 04:20:09 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  2. src/bufio/bufio.go

    		// b.r < b.w => buffer is not empty
    		m, err := b.writeBuf(w)
    		n += m
    		if err != nil {
    			return n, err
    		}
    		b.fill() // buffer is empty
    	}
    
    	if b.err == io.EOF {
    		b.err = nil
    	}
    
    	return n, b.readErr()
    }
    
    var errNegativeWrite = errors.New("bufio: writer returned negative count from Write")
    
    // writeBuf writes the [Reader]'s buffer to the writer.
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 22K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

        }
    
        @Test
        @DisplayName("writeUTF(): prefixes size and writes encoded bytes")
        void writeUTF_encodesAndPrefixes() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("rw", false, true, false));
            doNothing().when(raf).write(any(byte[].class), anyInt(), anyInt());
            doNothing().when(raf).writeShort(anyInt());
    
            raf.writeUTF("é"); // 2-byte UTF-8 char
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stemmeroverride/ApiAdminDictStemmeroverrideAction.java

            return stemmerOverrideService.getStemmerOverrideFile(body.dictId)
                    .map(file -> asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> {
                        file.writeOut(out);
                    }))
                    .orElseGet(() -> {
                        throwValidationErrorApi(messages -> messages.addErrorsFailedToDownloadProtwordsFile(GLOBAL));
                        return null;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/admin/dict/stopwords/AdminDictStopwordsAction.java

            return stopwordsService.getStopwordsFile(form.dictId)
                    .map(file -> asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> {
                        file.writeOut(out);
                    }))
                    .orElseGet(() -> {
                        throwValidationError(messages -> messages.addErrorsFailedToDownloadStopwordsFile(GLOBAL),
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

                b[j] = (byte) (c[i] >>> 8);
                j++;
                b[j++] = (byte) (c[i] >>> 0);
            }
            write(b, 0, blen);
        }
    
        @Override
        public final void writeUTF(final String str) throws SmbException {
            final int len = str.length();
            int ch, size = 0;
            byte[] dst;
    
            for (int i = 0; i < len; i++) {
                ch = str.charAt(i);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/dict/DictionaryFile.java

         *
         * @param out the output stream to write to
         * @throws IOException if an I/O error occurs during writing
         */
        public void writeOut(final WrittenStreamOut out) throws IOException {
            try (final CurlResponse curlResponse = dictionaryManager.getContentResponse(this);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java

            return charMappingService.getCharMappingFile(form.dictId)
                    .map(file -> asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> {
                        file.writeOut(out);
                    }))
                    .orElseGet(() -> {
                        throwValidationError(messages -> messages.addErrorsFailedToDownloadMappingFile(GLOBAL),
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  9. cmd/notification.go

    				return nil
    			}
    
    			for typ, data := range data {
    				// zip writer only handles one concurrent write
    				writeMu.Lock()
    				profilingDataFound = true
    				err := embedFileInZip(zipWriter, fmt.Sprintf("profile-%s-%s", client.host.String(), typ), data, 0o600)
    				writeMu.Unlock()
    				if err != nil {
    					reqInfo := (&logger.ReqInfo{}).AppendTags("peerAddress", client.host.String())
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 45.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/dict/protwords/AdminDictProtwordsAction.java

            return protwordsService.getProtwordsFile(form.dictId)
                    .map(file -> asStream(new File(file.getPath()).getName()).contentTypeOctetStream().stream(out -> {
                        file.writeOut(out);
                    }))
                    .orElseGet(() -> {
                        throwValidationError(messages -> messages.addErrorsFailedToDownloadProtwordsFile(GLOBAL),
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 20.1K bytes
    - Viewed (0)
Back to top