Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 108 for Int8 (0.07 sec)

  1. src/runtime/os_plan9.go

    package runtime
    
    import (
    	"internal/abi"
    	"internal/runtime/atomic"
    	"internal/stringslite"
    	"unsafe"
    )
    
    type mOS struct {
    	waitsemacount uint32
    	notesig       *int8
    	errstr        *byte
    	ignoreHangup  bool
    }
    
    func closefd(fd int32) int32
    
    //go:noescape
    func open(name *byte, mode, perm int32) int32
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. src/encoding/gob/encoder_test.go

    		}
    	}
    }
    
    func TestEncodeIntSlice(t *testing.T) {
    
    	s8 := []int8{1, 5, 12, 22, 35, 51, 70, 92, 117}
    	s16 := []int16{145, 176, 210, 247, 287, 330, 376, 425, 477}
    	s32 := []int32{532, 590, 651, 715, 782, 852, 925, 1001, 1080}
    	s64 := []int64{1162, 1247, 1335, 1426, 1520, 1617, 1717, 1820, 1926}
    
    	t.Run("int8", func(t *testing.T) {
    		var sink bytes.Buffer
    		enc := NewEncoder(&sink)
    		enc.Encode(s8)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. src/reflect/value.go

    // It panics if v's Kind is not [Int], [Int8], [Int16], [Int32], or [Int64], or if [Value.CanSet] returns false.
    func (v Value) SetInt(x int64) {
    	v.mustBeAssignable()
    	switch k := v.kind(); k {
    	default:
    		panic(&ValueError{"reflect.Value.SetInt", v.kind()})
    	case Int:
    		*(*int)(v.ptr) = int(x)
    	case Int8:
    		*(*int8)(v.ptr) = int8(x)
    	case Int16:
    		*(*int16)(v.ptr) = int16(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  4. src/internal/fmtsort/sort.go

    	aType, bType := aVal.Type(), bVal.Type()
    	if aType != bType {
    		return -1 // No good answer possible, but don't return 0: they're not equal.
    	}
    	switch aVal.Kind() {
    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    		return cmp.Compare(aVal.Int(), bVal.Int())
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. src/encoding/gob/encode.go

    	b := v.Bool()
    	if b || state.sendZero {
    		state.update(i)
    		if b {
    			state.encodeUint(1)
    		} else {
    			state.encodeUint(0)
    		}
    	}
    }
    
    // encInt encodes the signed integer (int int8 int16 int32 int64) referenced by v.
    func encInt(i *encInstr, state *encoderState, v reflect.Value) {
    	value := v.Int()
    	if value != 0 || state.sendZero {
    		state.update(i)
    		state.encodeInt(value)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. src/text/template/funcs.go

    		return value, nil
    	}
    	return reflect.Value{}, fmt.Errorf("value has type %s; should be %s", value.Type(), argType)
    }
    
    func intLike(typ reflect.Kind) bool {
    	switch typ {
    	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    		return true
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
    		return true
    	}
    	return false
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  7. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.gcWriteBarrier", 1},
    	{"runtime.duffzero", 1},
    	{"runtime.duffcopy", 1},
    	{"runtime.morestack", 0},
    	{"runtime.morestackc", 0},
    	{"runtime.morestack_noctxt", 0},
    	{"type:int8", 0},
    	{"type:*int8", 0},
    	{"type:uint8", 0},
    	{"type:*uint8", 0},
    	{"type:int16", 0},
    	{"type:*int16", 0},
    	{"type:uint16", 0},
    	{"type:*uint16", 0},
    	{"type:int32", 0},
    	{"type:*int32", 0},
    	{"type:uint32", 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. src/encoding/json/encode.go

    }
    
    func isEmptyValue(v reflect.Value) bool {
    	switch v.Kind() {
    	case reflect.Array, reflect.Map, reflect.Slice, reflect.String:
    		return v.Len() == 0
    	case reflect.Bool,
    		reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64,
    		reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr,
    		reflect.Float32, reflect.Float64,
    		reflect.Interface, reflect.Pointer:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  9. src/runtime/alg.go

    	return typehash(t, p, h)
    }
    
    func memequal0(p, q unsafe.Pointer) bool {
    	return true
    }
    func memequal8(p, q unsafe.Pointer) bool {
    	return *(*int8)(p) == *(*int8)(q)
    }
    func memequal16(p, q unsafe.Pointer) bool {
    	return *(*int16)(p) == *(*int16)(q)
    }
    func memequal32(p, q unsafe.Pointer) bool {
    	return *(*int32)(p) == *(*int32)(q)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go

    	Len      uint8
    	Family   uint8
    	Port     uint16
    	Flowinfo uint32
    	Addr     [16]byte /* in6_addr */
    	Scope_id uint32
    }
    
    type RawSockaddrUnix struct {
    	Len    uint8
    	Family uint8
    	Path   [108]int8
    }
    
    type RawSockaddr struct {
    	Len    uint8
    	Family uint8
    	Data   [14]uint8
    }
    
    type RawSockaddrAny struct {
    	Addr RawSockaddr
    	_    [112]uint8 // pad
    }
    
    type _Socklen uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top