From 4bf57833e21ac436325f0012b4e1d6d3949152d4 Mon Sep 17 00:00:00 2001 From: c-cube Date: Wed, 9 Aug 2023 20:11:15 +0000 Subject: [PATCH] deploy: 18780db8539929b9e85ef79bc9c4d14c0cedab98 --- dev/tiny_httpd/Tiny_httpd_buf/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/tiny_httpd/Tiny_httpd_buf/index.html b/dev/tiny_httpd/Tiny_httpd_buf/index.html index 766bef3c..4f782ad0 100644 --- a/dev/tiny_httpd/Tiny_httpd_buf/index.html +++ b/dev/tiny_httpd/Tiny_httpd_buf/index.html @@ -1,2 +1,2 @@ -Tiny_httpd_buf (tiny_httpd.Tiny_httpd_buf)

Module Tiny_httpd_buf

Simple buffer.

These buffers are used to avoid allocating too many byte arrays when processing streams and parsing requests.

type t
val size : t -> int
val clear : t -> unit
val create : ?size:int -> unit -> t
val contents : t -> string
val bytes_slice : t -> bytes

Access underlying slice of bytes.

  • since 0.5
val contents_and_clear : t -> string

Get contents of the buffer and clear it.

  • since 0.5
val add_char : t -> char -> unit

Add a single char.

  • since 0.14
val add_bytes : t -> bytes -> int -> int -> unit

Append given bytes slice to the buffer.

  • since 0.5
val add_string : t -> string -> unit

Add string.

  • since 0.14
val add_buffer : t -> Stdlib.Buffer.t -> unit

Append bytes from buffer.

  • since 0.14
\ No newline at end of file +Tiny_httpd_buf (tiny_httpd.Tiny_httpd_buf)

Module Tiny_httpd_buf

Simple buffer.

These buffers are used to avoid allocating too many byte arrays when processing streams and parsing requests.

type t
val size : t -> int
val clear : t -> unit
val create : ?size:int -> unit -> t
val contents : t -> string
val clear_and_zero : t -> unit

Clear the buffer and zero out its storage.

  • since NEXT_RELEASE
val bytes_slice : t -> bytes

Access underlying slice of bytes.

  • since 0.5
val contents_and_clear : t -> string

Get contents of the buffer and clear it.

  • since 0.5
val add_char : t -> char -> unit

Add a single char.

  • since 0.14
val add_bytes : t -> bytes -> int -> int -> unit

Append given bytes slice to the buffer.

  • since 0.5
val add_string : t -> string -> unit

Add string.

  • since 0.14
val add_buffer : t -> Stdlib.Buffer.t -> unit

Append bytes from buffer.

  • since 0.14
\ No newline at end of file