/// <summary> /// encodes with length prefix /// </summary> /// <param name="text"></param> /// <returns></returns> public static string LengthEncode(string text) { var stringable = NaturalStringable.New(text).DecorateWithLength(); var rv = stringable.GetValue(); return(rv); }
public static NaturalStringable MakeStringable(this string text) { return(NaturalStringable.New(text)); }