- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 14 for ringbuffer (0.05 seconds)
-
internal/ringbuffer/README.md
# ringbuffer
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed May 15 00:11:04 GMT 2024 - 2.1K bytes - Click Count (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)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 1.5K bytes - Click Count (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
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Jan 17 19:19:30 GMT 2025 - 6.2K bytes - Click Count (0) -
android/guava/src/com/google/common/io/LineBuffer.java
* call {@link #finish} at the end of stream. * * @author Chris Nokleberg * @since 1.0 */ @J2ktIncompatible @GwtIncompatible abstract class LineBuffer { /** Holds partial line contents. */ private StringBuilder line = new StringBuilder(); /** Whether a line ending with a CR is pending processing. */ private boolean sawReturn; /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 18 02:54:30 GMT 2025 - 3.9K bytes - Click Count (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!!)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 6K bytes - Click Count (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
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 9K bytes - Click Count (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();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 4.7K bytes - Click Count (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(' ');Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.6K bytes - Click Count (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); } };
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3K bytes - Click Count (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(' ');Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.8K bytes - Click Count (0)