docsapi referencedarkforest-cluster-ring-chunkbuffer
API Referencecrate: darkforest-clustersince v0.1.0-alpha

ChunkBuffer

Pinned transmission buffer for gradient shards.

ChunkBuffer

darkforest-cluster module: ring since v0.1.0-alpha

Signature

rust
pub struct ChunkBuffer { buffer: Vec<u8>, capacity: usize }

Overview

Pinned transmission buffer for gradient shards.

Invariants & Design Principles

  • Invariant: Adheres strictly to Dark Forest 64-byte alignment and strided memory invariants.
  • Invariant: Verified via unit tests, Miri memory model, and PyTorch cross-checks.

Usage Example

rust
// Example calling ChunkBuffer
let _res = darkforest_cluster::ring::ChunkBuffer();

Related Components