package devkit

  1. Overview
  2. Docs
On This Page
  1. Appending strings
Development kit - general purpose library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.20261006.tar.gz
md5=a39dbbce04bd5562a9b4443daf39c582
sha512=b10104b61384b2151521b785e7f3c3250134c75eae09b42cad69bc4a22a9a5e429beb891ee87cedf376c23d9c40f09d3f71c3fd48aa35df490c0f69dc17f3242

doc/devkit.ocamlnet_lite/Ocamlnet_lite/Netbuffer/index.html

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.