ktn_io_string (katana_code v2.3.1)

View Source

Summary

Types

state/0

-type state() :: #{buffer := string(), original := string()}.

Functions

init(Str)

-spec init(string()) -> ok.

loop(State)

-spec loop(state()) -> ok.

new(Str)

-spec new(string() | binary()) -> pid().

skip(Str, Length)

-spec skip(string() | {cont, integer(), string()}, integer()) ->
              {more, {cont, integer(), string()}} | {done, integer(), string()}.

skip(Str, Data, Length)

-spec skip(string() | {cont, integer(), string()}, term(), integer()) ->
              {more, {cont, integer(), string()}} | {done, integer(), string()}.

start_link(Str)

-spec start_link(string()) -> pid().