Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 304 for buf1 (0.02 sec)

  1. internal/s3select/select.go

    			return err
    		}
    		if buf.Bytes()[buf.Len()-1] == '\n' {
    			buf.Truncate(buf.Len() - 1)
    		}
    		buf.WriteString(s3Select.Output.CSVArgs.RecordDelimiter)
    
    		return nil
    	case jsonFormat:
    		err := record.WriteJSON(buf)
    		if err != nil {
    			return err
    		}
    		// Trim trailing newline from non-simd output
    		if buf.Bytes()[buf.Len()-1] == '\n' {
    			buf.Truncate(buf.Len() - 1)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. istioctl/pkg/authz/analyzer_test.go

    				},
    				ClientStatus: 453,
    			},
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			var buf bytes.Buffer
    			a.Print(&buf)
    			expectedOutput := "ACTION   AuthorizationPolicy   RULES\n"
    			actualOutput := buf.String()
    			if !reflect.DeepEqual(expectedOutput, actualOutput) {
    				t.Errorf("Found %v, wanted %v", actualOutput, expectedOutput)
    			}
    		})
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/job/PythonJob.java

            final StringBuilder buf = new StringBuilder(100);
            buf.append("WEB-INF");
            buf.append(File.separator);
            buf.append("env");
            buf.append(File.separator);
            buf.append(getExecuteType());
            buf.append(File.separator);
            buf.append("resources");
            buf.append(File.separator);
            buf.append(filename.replaceAll("\\.\\.+", ""));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2.go

    	}
    }
    
    func decodeXLHeaders(buf []byte) (versions int, headerV, metaV uint8, b []byte, err error) {
    	hdrVer, buf, err := msgp.ReadUint8Bytes(buf)
    	if err != nil {
    		return 0, 0, 0, buf, err
    	}
    	metaVer, buf, err := msgp.ReadUint8Bytes(buf)
    	if err != nil {
    		return 0, 0, 0, buf, err
    	}
    	if hdrVer > xlHeaderVersion {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  5. tensorflow/c/eager/c_api_experimental.cc

    }
    
    const void TFE_MonitoringStringGaugeCellValue(
        TFE_MonitoringStringGaugeCell* cell, TF_Buffer* buf) {
      tensorflow::string value = cell->cell.value();
      void* data = tensorflow::port::Malloc(value.length());
      value.copy(static_cast<char*>(data), value.length(), 0);
      buf->data = data;
      buf->length = value.length();
      buf->data_deallocator = [](void* data, size_t length) {
        tensorflow::port::Free(data);
      };
    }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/text/DecimalFormatUtil.java

            final StringBuilder buf = new StringBuilder(20);
            for (int i = 0; i < s.length(); ++i) {
                char c = s.charAt(i);
                if (c == groupingSep) {
                    continue;
                } else if (c == decimalSep) {
                    c = '.';
                }
                buf.append(c);
            }
            return buf.toString();
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. internal/ringbuffer/README.md

    )
    
    func main() {
    	rb := ringbuffer.New(1024)
    
    	// write
    	rb.Write([]byte("abcd"))
    	fmt.Println(rb.Length())
    	fmt.Println(rb.Free())
    
    	// read
    	buf := make([]byte, 4)
    	rb.Read(buf)
    	fmt.Println(string(buf))
    }
    ```
    
    It is possible to use an existing buffer with by replacing `New` with `NewBuffer`.
    
    
    # Blocking vs Non-blocking
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

                    return new IntItem(buf);
                } else if (buf.length() <= MAX_LONGITEM_LENGTH) {
                    // lower than 2^63
                    return new LongItem(buf);
                }
                return new BigIntegerItem(buf);
            }
            return new StringItem(buf, false);
        }
    
        private static String stripLeadingZeroes(String buf) {
            if (buf == null || buf.isEmpty()) {
                return "0";
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 26K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/lang/StringUtil.java

            final StringBuilder buf = new StringBuilder();
            appendHex(buf, i);
            return new String(buf);
        }
    
        /**
         * 文字列に、数値を16進数に変換した文字列を追加します。
         *
         * @param buf
         *            追加先の文字列
         * @param i
         *            数値
         */
        public static void appendHex(final StringBuilder buf, final byte i) {
            buf.append(Character.forDigit((i & 0xf0) >> 4, 16));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  10. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java

                    MessageBuilder buff = MessageUtils.builder();
                    buff.a("Message styles: ");
                    buff.trace("trace").a(' ');
                    buff.debug("debug").a(' ');
                    buff.info("info").a(' ');
                    buff.warning("warning").a(' ');
                    buff.error("error").a(' ');
                    buff.success("success").a(' ');
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38K bytes
    - Viewed (0)
Back to top