The OpenD Programming Language

encode

Encodes the contents of s in units of type Tgt, writing the result to an output range.

  1. E[] encode(dchar c)
  2. size_t encode(dchar c, E[] array)
  3. void encode(dchar c, void delegate(E) dg)
  4. size_t encode(Src[] s, R range)
    size_t
    encode
    (
    Tgt
    Src
    R
    )
    (
    in Src[] s
    ,)

Parameters

Tgt

Element type of range.

s Src[]

Input array.

range R

Output range.

Return Value

Type: size_t

The number of Tgt elements written.

Meta