Kind2/base/Buffer8.kind
2021-06-12 23:33:04 -03:00

7 lines
288 B
Plaintext

// Buffer8 is implemented with a pure Array, which is a perfect binary tree. In
// some targets, it is optimized to use native mutable buffer instead. It can
// hold up to depth**2 elements. It does NOT store its element count.
type Buffer8 {
new(depth: Nat, array: Array<U8, depth>)
}