- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 1,074 for BytesX (1.6 sec)
-
src/test/java/jcifs/netbios/SessionServicePacketTest.java
void testReadnMultipleCalls() throws IOException { when(mockInputStream.read(any(byte[].class), anyInt(), anyInt())).thenReturn(2) // First read returns 2 bytes .thenReturn(2) // Second read returns 2 bytes .thenReturn(1); // Third read returns 1 byte byte[] buffer = new byte[10]; int bytesRead = SessionServicePacket.readn(mockInputStream, buffer, 0, 5);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
docs/debugging/healing-bin/main.go
r, err := file.Open() if err != nil { return err } b, err := io.ReadAll(r) if err != nil { return err } buf := bytes.NewBuffer(nil) if _, err = msgp.CopyToJSON(buf, bytes.NewReader(b)); err != nil { return err } dec := json.NewDecoder(buf) // Use number to preserve integers. dec.UseNumber() var htr map[string]any
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 3.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java
// sid (2 bytes, LE) assertEquals((byte) 0x34, dst[0]); assertEquals((byte) 0x12, dst[1]); // LIST_COUNT (2 bytes, LE) int listCount = Trans2FindFirst2.LIST_COUNT; assertEquals((byte) (listCount & 0xFF), dst[2]); assertEquals((byte) ((listCount >> 8) & 0xFF), dst[3]); // informationLevel (2 bytes, LE) -> 0x0104
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.9K bytes - Viewed (0) -
cmd/streaming-signature-v4.go
// Any value must end with a newline. // Not all clients send that. trailerRaw := valueBuffer.Bytes() if len(trailerRaw) > 0 && trailerRaw[len(trailerRaw)-1] != '\n' { valueBuffer.Write([]byte{'\n'}) } sig = sig[len("x-amz-trailer-signature:"):] sig = bytes.TrimSpace(sig) cr.chunkSHA256Writer.Write(valueBuffer.Bytes()) wantSig := cr.getTrailerChunkSignature() if !compareSignatureV4(string(sig), wantSig) {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 18.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java
} /** * Sets the minimum number of bytes that must be read for the operation to succeed * * @param minimumCount * the minimumCount to set */ public void setMinimumCount(final int minimumCount) { this.minimumCount = minimumCount; } /** * Sets the number of bytes remaining to be read after this request *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.8K bytes - Viewed (0) -
cmd/erasure-encode_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 cmd import ( "bytes" "context" "crypto/rand" "io" "testing" "github.com/dustin/go-humanize" ) type badDisk struct{ StorageAPI } func (a badDisk) String() string { return "bad-disk" }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 11.8K bytes - Viewed (0) -
cmd/xl-storage_windows_test.go
package cmd import ( "bytes" "context" "fmt" "testing" ) // Test if various paths work as expected when converted to UNC form func TestUNCPaths(t *testing.T) { testCases := []struct { objName string pass bool }{ {"/abcdef", true}, {"/a/b/c/d/e/f/g", true}, {string(bytes.Repeat([]byte("界"), 85)), true},
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Nov 29 06:35:16 UTC 2023 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
} /** * Reads up to len bytes of data from this input stream into an array of bytes. * Optimized for better performance with larger read sizes and reduced round trips. * * @param b the buffer to read into * @param off the offset in the buffer to start writing * @param len the maximum number of bytes to read * @return number of bytes read * * @throws IOException
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0) -
cmd/object-api-utils_test.go
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 24.1K bytes - Viewed (0) -
cmd/handler-utils_test.go
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 6.1K bytes - Viewed (0)