package devkit

  1. Overview
  2. Docs
On This Page
  1. Appending strings
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ocamlnet_lite.NetbufferSource

A Netbuffer.t is a buffer that can grow and shrink dynamically.

Sourcetype t
Sourceval create : int -> t

Creates a netbuffer which allocates initially this number of bytes. * The logical length is zero.

Sourceval to_tstring_poly : t -> 's Netstring_tstring.tstring_kind -> 's

Return the buffer in the format as selected by the arg

Appending strings

Sourceval add_string : t -> string -> unit

add_string nb s: Adds a copy of the string s to the logical end of * the netbuffer nb. If necessary, nb grows.

OCaml

Innovation. Community. Security.