Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for GoBytes (0.11 sec)

  1. src/cmd/cgo/doc.go

    	// C string to Go string
    	func C.GoString(*C.char) string
    
    	// C data with explicit length to Go string
    	func C.GoStringN(*C.char, C.int) string
    
    	// C data with explicit length to Go []byte
    	func C.GoBytes(unsafe.Pointer, C.int) []byte
    
    As a special case, C.malloc does not call the C library malloc directly
    but instead calls a Go helper function that wraps the C library malloc
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Dec 11 23:57:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/persistent/HandleGuidTest.java

            assertNotEquals(guid1, guid2);
            assertEquals(16, guid1.toBytes().length);
            assertEquals(16, guid2.toBytes().length);
        }
    
        @Test
        public void testHandleGuidRoundTrip() {
            HandleGuid original = new HandleGuid();
            byte[] bytes = original.toBytes();
            HandleGuid reconstructed = new HandleGuid(bytes);
    
            assertEquals(original, reconstructed);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. docs/smb3-features/02-persistent-handles-design.md

            HandleGuid guid2 = new HandleGuid();
            
            assertNotEquals(guid1, guid2);
            assertEquals(16, guid1.toBytes().length);
            
            // Test round-trip
            HandleGuid guid3 = new HandleGuid(guid1.toBytes());
            assertEquals(guid1, guid3);
        }
        
        @Test
        public void testHandleInfoExpiration() {
            HandleInfo info = new HandleInfo(
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java

        }
    
        /**
         * Convert the GUID to byte array for wire format (little-endian as per MS-SMB2)
         * @return 16-byte array representing the GUID in SMB wire format
         */
        public byte[] toBytes() {
            byte[] result = new byte[16];
            ByteBuffer bb = ByteBuffer.wrap(result).order(java.nio.ByteOrder.LITTLE_ENDIAN);
    
            long mostSig = guid.getMostSignificantBits();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Request.java

            dstIndex += 4;
    
            SMBUtil.writeInt8(0, dst, dstIndex); // Reserved (8 bytes)
            dstIndex += 8;
    
            System.arraycopy(createGuid.toBytes(), 0, dst, dstIndex, 16); // CreateGuid (16 bytes)
            dstIndex += 16;
    
            return dstIndex - start;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  6. lib/fips140/v1.0.0.zip

    happen on the heap. var out [{{ .Prefix }}ElementLen]byte return e.bytes(&out) } func (e *{{ .Element }}) bytes(out *[{{ .Prefix }}ElementLen]byte) []byte { var tmp {{ .Prefix }}NonMontgomeryDomainF {{ .Prefix }}FromMontgomery(&tmp, &e.x) {{ .Prefix }}ToBytes(out, (*{{ .Prefix }}UntypedFieldElement)(&tmp)) {{ .Prefix }}InvertEndianness(out[:]) return out[:] } // SetBytes sets e = v, where v is a big-endian {{ .BytesLen }}-byte encoding, and returns e. // If v is not {{ .BytesLen }} bytes or it encodes...
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 29 15:10:35 UTC 2025
    - 635K bytes
    - Viewed (0)
Back to top