Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for writeRaw (0.23 sec)

  1. subprojects/core/src/main/java/org/gradle/internal/html/SimpleHtmlWriter.java

        public SimpleHtmlWriter(Writer writer, String indent) throws IOException {
            super(writer, indent);
            writeHtmlHeader();
        }
    
        private void writeHtmlHeader() throws IOException {
            writeRaw("<!DOCTYPE html>");
        }
    
        @Override
        public SimpleMarkupWriter startElement(String name) throws IOException {
            if (!isValidHtmlTag(name)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 14:02:57 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/normalization/ConfigureRuntimeClasspathNormalizationIntegrationTest.groovy

        def "safely handles properties files in #description with bad unicode escape sequences"() {
            def project = new ProjectWithRuntimeClasspathNormalization(Api.RUNTIME).withFilesIgnored()
            project[resource].writeRaw('propertyWithBadValue=this is a bad unicode sequence'.bytes, [0x5C, 0x75, 0x78, 0x78, 0x78, 0x78] as byte[])
            project.buildFile << """
                normalization {
                    runtimeClasspath {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 01 03:07:53 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  3. src/io/io.go

    // WriteAt should not affect nor be affected by the underlying
    // seek offset.
    //
    // Clients of WriteAt can execute parallel WriteAt calls on the same
    // destination if the ranges do not overlap.
    //
    // Implementations must not retain p.
    type WriterAt interface {
    	WriteAt(p []byte, off int64) (n int, err error)
    }
    
    // ByteReader is the interface that wraps the ReadByte method.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:34:10 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  4. cmd/sftp-server-driver.go

    	for i := range w.buffer {
    		delete(w.buffer, i)
    	}
    	w.wg.Wait()
    	return err
    }
    
    type writerAt struct {
    	w      *io.PipeWriter
    	r      *io.PipeReader
    	wg     *sync.WaitGroup
    	buffer map[int64][]byte
    	err    error
    
    	nextOffset int64
    	m          sync.Mutex
    }
    
    func (w *writerAt) WriteAt(b []byte, offset int64) (n int, err error) {
    	w.m.Lock()
    	defer w.m.Unlock()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. src/mdo/writer-stax.vm

            #if ( ! $def )
                writeTag("$fieldTagName", null, ${classLcapName}.get${fieldCapName}(), serializer${loctrac});
            #else
                writeTag("$fieldTagName", "${def}", ${classLcapName}.get${fieldCapName}(), serializer${loctrac});
            #end
          #elseif ( $field.type == "boolean" || $field.type == "Boolean" )
            #if ( ${def} == "true" )
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Dec 05 08:11:33 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/guava-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/guava/ImmutableMapCodec.kt

    import org.gradle.internal.serialize.graph.WriteContext
    import org.gradle.internal.serialize.graph.writeMap
    
    
    object ImmutableMapCodec : Codec<ImmutableMap<Any, Any>> {
    
        override suspend fun WriteContext.encode(value: ImmutableMap<Any, Any>) {
            writeMap(value)
        }
    
        override suspend fun ReadContext.decode(): ImmutableMap<Any, Any>? {
            val size = readSmallInt()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 20:43:52 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultTextArea.java

            writePos.row++;
        }
    
        @Override
        protected void doLineText(final CharSequence text) {
            if (text.length() == 0) {
                return;
            }
    
            ansiExecutor.writeAt(writePos, new Action<AnsiContext>() {
                @Override
                public void execute(AnsiContext ansi) {
                    ansi.withStyle(getStyle(), new Action<AnsiContext>() {
                        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. src/mdo/writer.vm

            #if ( ! $def )
                writeTag("$fieldTagName", null, ${classLcapName}.get${fieldCapName}(), serializer);
            #else
                writeTag("$fieldTagName", "${def}", ${classLcapName}.get${fieldCapName}(), serializer);
            #end
          #elseif ( $field.type == "boolean" || $field.type == "Boolean" )
            #if ( ${def} == "true" )
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Sep 14 11:48:15 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultAnsiExecutorTest.groovy

            int startRow = writePos.row
            String text = "A" * TERMINAL_WIDTH +
                "B" * TERMINAL_WIDTH +
                "C" * TERMINAL_WIDTH +
                "D" * 3
    
            when:
            ansiExecutor.writeAt(writePos) {
                it.a(text)
            }
    
            then:
            writeCursor == Cursor.at(0, text.length())
            writePos == writeCursor
            interaction { expectLineWrapCallback(startRow, text.length()) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Serialization.java

       * for the data format. The size is determined by a prior call to {@link #readCount}.
       */
      static <K extends @Nullable Object, V extends @Nullable Object> void populateMap(
          Map<K, V> map, ObjectInputStream stream, int size)
          throws IOException, ClassNotFoundException {
        for (int i = 0; i < size; i++) {
          @SuppressWarnings("unchecked") // reading data stored by writeMap
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top