- Sort Score
- Result 10 results
- Languages All
Results 461 - 470 of 948 for nBytes (0.07 sec)
-
src/main/java/org/codelibs/core/io/FileUtil.java
* @param pathname * The path to the file. * @param bytes * The byte array to write. */ public static void writeBytes(final String pathname, final byte[] bytes) { try (FileOutputStream fos = OutputStreamUtil.create(new File(pathname))) { ChannelUtil.write(fos.getChannel(), ByteBuffer.wrap(bytes)); } catch (final IOException e) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java
byte[] dst = new byte[15]; // Increased buffer size to accommodate offset + 8 bytes int offset = 3; // start in the middle to ensure no tail is overwritten int bytesWritten = cmd.writeParametersWireFormat(dst, offset); assertEquals(8, bytesWritten, "writeParametersWireFormat should write 8 bytes"); byte[] expected = expectedParameters(fid, securityInformation);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt
} } companion object { /** Arbitrary code point that's 2 bytes in UTF-8 and valid in IdnaMappingTable.txt. */ private const val UNICODE_2 = 0x1a5 /** Arbitrary code point that's 3 bytes in UTF-8 and valid in IdnaMappingTable.txt. */ private const val UNICODE_3 = 0x2202 /** Arbitrary code point that's 4 bytes in UTF-8 and valid in IdnaMappingTable.txt. */ private const val UNICODE_4 = 0x1d11e
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
byte[] actualFileId = new byte[16]; System.arraycopy(buffer, 80, actualFileId, 0, 16); assertArrayEquals(newFileId, actualFileId); assertEquals(96, bytesWritten); // 32 bytes header + 64 bytes info } // Helper interface for testing private interface TestFileInformation extends FileInformation, Encodable { }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java
// Format: revision(1) + sbz1(1) + control(2) + ownerOffset(4) + groupOffset(4) + saclOffset(4) + daclOffset(4) = 20 bytes minimum byte[] securityDescriptorBytes = new byte[20]; securityDescriptorBytes[0] = 1; // revision securityDescriptorBytes[1] = 0; // sbz1 // control flags (2 bytes) securityDescriptorBytes[2] = 0; securityDescriptorBytes[3] = 0;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
src/main/java/jcifs/spnego/NegTokenTarg.java
setMechanismToken(mechanismToken); setMechanismListMIC(mechanismListMIC); } /** * Constructs a NegTokenTarg by parsing the provided token bytes * @param token the SPNEGO token bytes to parse * @throws IOException if parsing fails */ public NegTokenTarg(final byte[] token) throws IOException { parse(token); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.9K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
} // Check for null bytes if (str.indexOf('\0') != -1) { failedValidations.incrementAndGet(); log.warn("{} contains null bytes", fieldName); throw new SmbException(fieldName + " contains null bytes"); } // Check for control characters for (int i = 0; i < str.length(); i++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
assertDoesNotThrow(() -> ctx.dispose()); } } // Helper to build a minimal exported name token understood by MIEName(byte[]) // Format: TOK_ID(2 bytes) | OID_LEN(2 bytes) | OID_DER | NAME_LEN(4 bytes) | NAME(bytes) private static byte[] buildExportName(Oid mech, String name) throws GSSException { byte[] der = mech.getDER(); byte[] nb = name.getBytes();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Huffman.kt
accumulator = accumulator or (0xffL ushr accumulatorBitCount) sink.writeByte(accumulator.toInt()) } } fun encodedLength(bytes: ByteString): Int { var bitCount = 0L for (i in 0 until bytes.size) { val byteIn = bytes[i] and 0xff bitCount += CODE_BIT_COUNTS[byteIn].toLong() } return ((bitCount + 7) shr 3).toInt() // Round up to an even byte. }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 11K bytes - Viewed (0) -
cmd/auth-handler_test.go
// Short Content-Md5 header. {mustNewSignedShortMD5Request(http.MethodPut, "http://127.0.0.1:9000/", 5, bytes.NewReader([]byte("hello")), t), ErrInvalidDigest}, // When request is properly signed, but has bad Content-MD5 header. {mustNewSignedBadMD5Request(http.MethodPut, "http://127.0.0.1:9000/", 5, bytes.NewReader([]byte("hello")), t), ErrBadDigest},
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 15.4K bytes - Viewed (0)