- Sort Score
- Result 10 results
- Languages All
Results 661 - 670 of 1,209 for Bytes (0.71 sec)
-
internal/hash/checksum_test.go
if chksm == nil { t.Fatal("NewChecksumFromData returned nil") } // Serialize the checksum to bytes b := chksm.AppendTo(nil, nil) if b == nil { t.Fatal("AppendTo returned nil") } // Deserialize the checksum from bytes chksmOut := ChecksumFromBytes(b) if chksmOut == nil { t.Fatal("ChecksumFromBytes returned nil") }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 22 14:15:21 UTC 2025 - 7.1K bytes - Viewed (0) -
internal/config/identity/openid/jwt_test.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package openid import ( "bytes" "encoding/base64" "encoding/json" "fmt" "io" "net/http" "net/http/httptest" "net/url" "sync" "testing" "time" jwtgo "github.com/golang-jwt/jwt/v4"
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 8.2K bytes - Viewed (0) -
src/main/java/jcifs/util/PathValidator.java
} // Check for null bytes if (NULL_BYTE.matcher(path).find()) { log.warn("Path contains null bytes: {}", sanitizeForLog(path)); throw new SmbException("Path contains null bytes"); } // Check for control characters if (strictMode && CONTROL_CHARS.matcher(path).find()) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
assertEquals(0x40, Smb2TreeConnectResponse.SMB2_SHARE_CAP_CLUSTER); assertEquals(0x80, Smb2TreeConnectResponse.SMB2_SHARE_CAP_ASYMMETRIC); } @Test @DisplayName("Should write empty bytes to wire format") void testWriteBytesWireFormat() { // Given byte[] buffer = new byte[256]; int offset = 10; // When
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
guava/src/com/google/common/io/CharStreams.java
* * @author Chris Nokleberg * @author Bin Zhu * @author Colin Decker * @since 1.0 */ @J2ktIncompatible @GwtIncompatible public final class CharStreams { // 2K chars (4K bytes) private static final int DEFAULT_BUF_SIZE = 0x800; /** Creates a new {@code CharBuffer} for buffering reads or writes. */ static CharBuffer createBuffer() { return CharBuffer.allocate(DEFAULT_BUF_SIZE); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 29 13:56:24 UTC 2025 - 11.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/RandomAmountInputStream.java
import java.io.FilterInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Random; import org.jspecify.annotations.NullUnmarked; /** Returns a random portion of the requested bytes on each call. */ @NullUnmarked class RandomAmountInputStream extends FilterInputStream { private final Random random; public RandomAmountInputStream(InputStream in, Random random) { super(checkNotNull(in));Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 1.3K bytes - Viewed (0) -
cmd/data-usage-cache_gen.go
bts, err = msgp.Skip(bts) if err != nil { err = msgp.WrapError(err) return } } } o = bts return } // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message func (z *allTierStats) Msgsize() (s int) { s = 1 + 3 + msgp.MapHeaderSize if z.Tiers != nil { for za0001, za0002 := range z.Tiers { _ = za0002
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 85.5K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacSignatureTest.java
} /** * Test constructor with malformed data (too short). */ @Test void testConstructorMalformedData() { // Prepare data (only 2 bytes, less than an int) byte[] data = new byte[] { 0x01, 0x02 }; // Verify that PACDecodingException is thrown assertThrows(PACDecodingException.class, () -> { new PacSignature(data);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
// Then assertEquals(6, bytesWritten); assertEquals(fid, SMBUtil.readInt2(dst, 0)); // lastWriteTime is not written if digest is null, so the remaining bytes should be zero assertEquals(0, SMBUtil.readInt4(dst, 2)); } /** * Test method for {@link jcifs.internal.smb1.com.SmbComClose#writeParameterWordsWireFormat(byte[], int)} with a signing digest. */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
internal/hash/checksum.go
b = append(b, tmp[:n]...) if len(parts) > 0 { b = append(b, parts...) } } return b } // ChecksumFromBytes reconstructs a Checksum struct from the serialized bytes created in AppendTo() // Returns nil if the bytes are invalid or empty. // AppendTo() can append a serialized Checksum to another already-serialized Checksum, // however, in practice, we only use one at a time.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 22 14:15:21 UTC 2025 - 18.3K bytes - Viewed (0)