Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,154 for write1 (0.25 sec)

  1. android/guava/src/com/google/common/io/ByteSink.java

          long written = ByteStreams.copy(input, out);
          out.flush(); // https://code.google.com/p/guava-libraries/issues/detail?id=1330
          return written;
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      /**
       * A char sink that encodes written characters with a charset and writes resulting bytes to this
       * byte sink.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/ByteSink.java

          long written = ByteStreams.copy(input, out);
          out.flush(); // https://code.google.com/p/guava-libraries/issues/detail?id=1330
          return written;
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      /**
       * A char sink that encodes written characters with a charset and writes resulting bytes to this
       * byte sink.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  3. maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/io/ToolchainsWriter.java

    import java.io.IOException;
    import java.io.Writer;
    import java.util.Map;
    
    import org.apache.maven.toolchain.model.PersistedToolchains;
    
    /**
     * Handles serialization of toolchains into some kind of textual format like XML.
     *
     */
    public interface ToolchainsWriter {
    
        /**
         * Writes the supplied toolchains to the specified character writer. The writer will be automatically closed before
         * the method returns.
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. src/runtime/write_err_android.go

    		if v == '\n' || writePos == len(dst)-1 {
    			dst[writePos] = 0
    			write(writeFD, unsafe.Pointer(&writeBuf[0]), int32(hlen+writePos))
    			clear(dst)
    			writePos = 0
    		}
    	}
    }
    
    func initLegacy() {
    	// In legacy mode, logs are written to /dev/log/main
    	writeFD = uintptr(open(&writePath[0], 0x1 /* O_WRONLY */, 0))
    	if writeFD == 0 {
    		// It is hard to do anything here. Write to stderr just
    		// in case user has root on device and has run
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt

        }
    
        return result
      }
    
      override fun toDer(
        writer: DerWriter,
        value: T,
      ) {
        if (typeHint) {
          writer.typeHint = value
        }
    
        if (isOptional && value == defaultValue) {
          // Nothing to write!
          return
        }
    
        writer.write(name, tagClass, tag) {
          codec.encode(writer, value)
        }
      }
    
      /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/printers/json.go

    // JSONPrinter is an implementation of ResourcePrinter which outputs an object as JSON.
    type JSONPrinter struct{}
    
    // PrintObj is an implementation of ResourcePrinter.PrintObj which simply writes the object to the Writer.
    func (p *JSONPrinter) PrintObj(obj runtime.Object, w io.Writer) error {
    	// we use reflect.Indirect here in order to obtain the actual value from a pointer.
    	// we need an actual value in order to retrieve the package path for an object.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 10 11:23:25 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/text/unicode/norm/readwriter.go

    func (w *normWriter) Close() error {
    	if len(w.buf) > 0 {
    		_, err := w.w.Write(w.buf)
    		if err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // Writer returns a new writer that implements Write(b)
    // by writing f(b) to w. The returned writer may use an
    // internal buffer to maintain state across Write calls.
    // Calling its Close method writes any buffered data to w.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/streaming/streaming.go

    }
    
    type encoder struct {
    	writer  io.Writer
    	encoder runtime.Encoder
    	buf     *bytes.Buffer
    }
    
    // NewEncoder returns a new streaming encoder.
    func NewEncoder(w io.Writer, e runtime.Encoder) Encoder {
    	return &encoder{
    		writer:  w,
    		encoder: e,
    		buf:     &bytes.Buffer{},
    	}
    }
    
    // Encode writes the provided object to the nested writer.
    func (e *encoder) Encode(obj runtime.Object) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 25 14:51:36 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/text/unicode/norm/readwriter.go

    func (w *normWriter) Close() error {
    	if len(w.buf) > 0 {
    		_, err := w.w.Write(w.buf)
    		if err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // Writer returns a new writer that implements Write(b)
    // by writing f(b) to w. The returned writer may use an
    // internal buffer to maintain state across Write calls.
    // Calling its Close method writes any buffered data to w.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. cmd/bitrot-streaming.go

    // newStreamingBitrotWriterBuffer returns streaming bitrot writer implementation.
    // The output is written to the supplied writer w.
    func newStreamingBitrotWriterBuffer(w io.Writer, algo BitrotAlgorithm, shardSize int64) io.Writer {
    	return &streamingBitrotWriter{iow: ioutil.NopCloser(w), h: algo.New(), shardSize: shardSize, canClose: nil, closeWithErr: func(err error) {}}
    }
    
    // Returns streaming bitrot writer implementation.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top