Module Tiny_httpd.Buf_
val size : t -> intval clear : t -> unitval create : ?size:int -> unit -> tval contents : t -> stringval bytes_slice : t -> bytesAccess underlying slice of bytes.
- since
- 0.5
val contents_and_clear : t -> stringGet contents of the buffer and clear it.
- since
- 0.5
val add_bytes : t -> bytes -> int -> int -> unitAppend given bytes slice to the buffer.
- since
- 0.5