- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for ringbuffer (0.17 sec)
-
internal/ringbuffer/README.md
# ringbuffer
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 2.1K bytes - Viewed (0) -
cmd/bitrot-streaming.go
package cmd import ( "bytes" "context" "errors" "hash" "io" "sync" xhttp "github.com/minio/minio/internal/http" "github.com/minio/minio/internal/ioutil" "github.com/minio/minio/internal/ringbuffer" ) // Calculates bitrot in chunks and writes the hash into the stream. type streamingBitrotWriter struct { iow io.WriteCloser closeWithErr func(err error) h hash.Hash shardSize int64
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Jan 17 19:19:30 UTC 2025 - 6.2K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_benchmark_test.go
package ringbuffer import ( "io" "strings" "testing" ) func BenchmarkRingBuffer_Sync(b *testing.B) { rb := New(1024) data := []byte(strings.Repeat("a", 512)) buf := make([]byte, 512) for b.Loop() { rb.Write(data) rb.Read(buf) } } func BenchmarkRingBuffer_AsyncRead(b *testing.B) { // Pretty useless benchmark, but it's here for completeness. rb := New(1024)
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 1.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketWriter.kt
val b0 = B0_FLAG_FIN or opcode sinkBuffer.writeByte(b0) var b1 = length if (isClient) { b1 = b1 or B1_FLAG_MASK sinkBuffer.writeByte(b1) random.nextBytes(maskKey!!) sinkBuffer.write(maskKey) if (length > 0) { val payloadStart = sinkBuffer.size sinkBuffer.write(payload) sinkBuffer.readAndWriteUnsafe(maskCursor!!)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/internal/util/StringUtilTest.java
assertEquals("first,second", result); } @Test @DisplayName("Should handle StringBuffer as CharSequence") void testJoinWithStringBuffer() { StringBuffer sb1 = new StringBuffer("alpha"); StringBuffer sb2 = new StringBuffer("beta"); String result = StringUtil.join("-", sb1, sb2); assertEquals("alpha-beta", result); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/LineBufferTest.java
} } private static List<String> bufferHelper(String input, int chunk) throws IOException { List<String> lines = new ArrayList<>(); LineBuffer lineBuf = new LineBuffer() { @Override protected void handleLine(String line, String end) { lines.add(line + end); } }; char[] chars = input.toCharArray();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 4.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/LineBufferTest.java
} } private static List<String> bufferHelper(String input, int chunk) throws IOException { List<String> lines = new ArrayList<>(); LineBuffer lineBuf = new LineBuffer() { @Override protected void handleLine(String line, String end) { lines.add(line + end); } }; char[] chars = input.toCharArray();
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 4.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/dtyp/ACE.java
* <p> * Note: This function should probably be changed to return SDDL * fragments but currently it does not. */ @Override public String toString() { final StringBuffer sb = new StringBuffer(); sb.append(isAllow() ? "Allow " : "Deny "); appendCol(sb, this.sid.toDisplayString(), 25); sb.append(" 0x").append(Hexdump.toHexString(this.access, 8)).append(' ');Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/LineReader.java
private final CharBuffer cbuf = createBuffer(); private final char[] buf = cbuf.array(); private final Queue<String> lines = new ArrayDeque<>(); private final LineBuffer lineBuf = new LineBuffer() { @Override protected void handleLine(String line, String end) { lines.add(line); } };
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/ACE.java
* fragments but currently it does not. */ @Override public String toString() { final int count, i; final String str; final StringBuffer sb = new StringBuffer(); sb.append(isAllow() ? "Allow " : "Deny "); appendCol(sb, sid.toDisplayString(), 25); sb.append(" 0x").append(Hexdump.toHexString(access, 8)).append(' ');Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.8K bytes - Viewed (0)