Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 590 for jconst (0.05 sec)

  1. src/cmd/api/main_test.go

    	switch obj := obj.(type) {
    	case *types.Const:
    		if w.isDeprecated(obj) {
    			w.emitf("const %s //deprecated", obj.Name())
    		}
    		w.emitf("const %s %s", obj.Name(), w.typeString(obj.Type()))
    		x := obj.Val()
    		short := x.String()
    		exact := x.ExactString()
    		if short == exact {
    			w.emitf("const %s = %s", obj.Name(), short)
    		} else {
    			w.emitf("const %s = %s  // %s", obj.Name(), short, exact)
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt

        /**
         * The imgur client ID for OkHttp recipes. If you're using imgur for anything other than running
         * these examples, please request your own client ID! https://api.imgur.com/oauth2
         */
        private const val IMGUR_CLIENT_ID = "9199fdef135c122"
        private val MEDIA_TYPE_PNG = "image/png".toMediaType()
      }
    }
    
    fun main() {
      PostMultipart().run()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/bytes/reader_test.go

    			t.Errorf("got string %q; want %q", b.String(), s)
    		}
    		if r.Len() != 0 {
    			t.Errorf("reader contains %v bytes; want 0", r.Len())
    		}
    	}
    }
    
    func TestReaderLen(t *testing.T) {
    	const data = "hello world"
    	r := NewReader([]byte(data))
    	if got, want := r.Len(), 11; got != want {
    		t.Errorf("r.Len(): got %d, want %d", got, want)
    	}
    	if n, err := r.Read(make([]byte, 10)); err != nil || n != 10 {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 8K bytes
    - Viewed (0)
  4. cmd/bucket-replication-metrics.go

    package cmd
    
    import (
    	"fmt"
    	"sync"
    	"sync/atomic"
    	"time"
    
    	"github.com/rcrowley/go-metrics"
    )
    
    //go:generate msgp -file $GOFILE
    
    const (
    	// beta is the weight used to calculate exponential moving average
    	beta = 0.1 // Number of averages considered = 1/(1-beta)
    )
    
    // rateMeasurement captures the transfer details for one bucket/target
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. cmd/metrics-v3-system-cpu.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"math"
    )
    
    const (
    	sysCPUAvgIdle   = "avg_idle"
    	sysCPUAvgIOWait = "avg_iowait"
    	sysCPULoad      = "load"
    	sysCPULoadPerc  = "load_perc"
    	sysCPUNice      = "nice"
    	sysCPUSteal     = "steal"
    	sysCPUSystem    = "system"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 20 17:55:03 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. internal/config/drive/drive.go

    package drive
    
    import (
    	"sync"
    	"time"
    
    	"github.com/minio/minio/internal/config"
    	"github.com/minio/pkg/v3/env"
    )
    
    // Drive specific timeout environment variables
    const (
    	EnvMaxDriveTimeout       = "MINIO_DRIVE_MAX_TIMEOUT"
    	EnvMaxDriveTimeoutLegacy = "_MINIO_DRIVE_MAX_TIMEOUT"
    	EnvMaxDiskTimeoutLegacy  = "_MINIO_DISK_MAX_TIMEOUT"
    )
    
    // DefaultKVS - default KVS for drive
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. internal/disk/directio_unsupported.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"os"
    )
    
    // ODirectPlatform indicates if the platform supports O_DIRECT
    const ODirectPlatform = false
    
    // OpenBSD, Windows, and illumos do not support O_DIRECT.
    // On Windows there is no documentation on disabling O_DIRECT.
    // For these systems we do not attempt to build the 'directio' dependency since
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. internal/ioutil/ioutil.go

    import (
    	"context"
    	"errors"
    	"io"
    	"os"
    	"runtime/debug"
    	"sync"
    	"time"
    
    	"github.com/dustin/go-humanize"
    	"github.com/minio/minio/internal/disk"
    )
    
    // Block sizes constant.
    const (
    	SmallBlock  = 32 * humanize.KiByte  // Default r/w block size for smaller objects.
    	MediumBlock = 128 * humanize.KiByte // Default r/w block size for medium sized objects.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. src/bufio/bufio_test.go

    // fills the buffer before switching over to ReadFrom.
    func TestWriterReadFromWithBufferedData(t *testing.T) {
    	const bufsize = 16
    
    	input := createTestInput(64)
    	rfw := &readFromWriter{}
    	w := NewWriterSize(rfw, bufsize)
    
    	const writeSize = 8
    	if n, err := w.Write(input[:writeSize]); n != writeSize || err != nil {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  10. cmd/metacache-marker.go

    package cmd
    
    import (
    	"context"
    	"fmt"
    	"strconv"
    	"strings"
    )
    
    // markerTagVersion is the marker version.
    // Should not need to be updated unless a fundamental change is made to the marker format.
    const markerTagVersion = "v2"
    
    // parseMarker will parse a marker possibly encoded with encodeMarker
    func (o *listPathOptions) parseMarker() {
    	s := o.Marker
    	if !strings.Contains(s, "[minio_cache:"+markerTagVersion) {
    		return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top