- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for ToBytes (0.07 seconds)
-
internal/s3select/sql/value.go
} // ToTimestamp returns the timestamp value if present. func (v Value) ToTimestamp() (t time.Time, ok bool) { t, ok = v.value.(time.Time) return t, ok } // ToBytes returns the value if byte-slice. func (v Value) ToBytes() (val []byte, ok bool) { val, ok = v.value.([]byte) return val, ok } // ToArray returns the value if it is a slice of values. func (v Value) ToArray() (val []Value, ok bool) {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 20.4K bytes - Click Count (0) -
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);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 2.4K bytes - Click Count (0) -
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(
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 31.6K bytes - Click Count (0) -
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();Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 4.5K bytes - Click Count (0) -
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; }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 5.2K bytes - Click Count (0) -
internal/s3select/json/record.go
v = sql.FormatSQLTimestamp(t) } else if s, ok := value.ToString(); ok { v = s } else if value.IsNull() { v = nil } else if value.IsMissing() { return r, nil } else if b, ok := value.ToBytes(); ok { // This can either be raw json or a CSV value. // Only treat objects and arrays as JSON. if len(b) > 0 && (b[0] == '{' || b[0] == '[') { v = RawJSON(b) } else { v = string(b) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 5.2K bytes - Click Count (0) -
lib/fips140/v1.0.0-c2097c7c.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...
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Sep 25 19:53:19 GMT 2025 - 642.7K bytes - Click Count (0) -
lib/fips140/v1.1.0-rc1.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...
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Dec 11 16:27:41 GMT 2025 - 663K bytes - Click Count (0)