Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetBinaryValue (0.29 sec)

  1. src/internal/syscall/windows/registry/value.go

    		return 0, typ, ErrUnexpectedType
    	}
    }
    
    // GetBinaryValue retrieves the binary value for the specified
    // value name associated with an open key k. It also returns the value's type.
    // If value does not exist, GetBinaryValue returns ErrNotExist.
    // If value is not BINARY, it will return the correct value
    // type and ErrUnexpectedType.
    func (k Key) GetBinaryValue(name string) (val []byte, valtype uint32, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. src/internal/syscall/windows/registry/registry_test.go

    		return
    	}
    }
    
    func testGetBinaryValue(t *testing.T, k registry.Key, test ValueTest) {
    	got, gottype, err := k.GetBinaryValue(test.Name)
    	if err != nil {
    		t.Errorf("GetBinaryValue(%s) failed: %v", test.Name, err)
    		return
    	}
    	if !bytes.Equal(got, test.Value.([]byte)) {
    		t.Errorf("want %s value %v, got %v", test.Name, test.Value, got)
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:19:00 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top