View Source ktn_io_string (katana_code v2.1.0)
Link to this section Summary
Link to this section Types
-type state() :: #{buffer := string(), original := string()}.
Link to this section Functions
-spec init(string()) -> ok.
-spec loop(state()) -> ok.
-spec new(string() | binary()) -> pid().
-spec skip(string() | {cont, integer(), string()}, integer()) ->
{more, {cont, integer(), string()}} | {done, integer(), string()}.
-spec skip(string() | {cont, integer(), string()}, term(), integer()) ->
{more, {cont, integer(), string()}} | {done, integer(), string()}.
-spec start_link(string()) -> pid().