Function NullTerminatedString

  • @NullTerminatedString decorator read a string until the '\0' character is met and always interpret a string.

    Type Parameters

    • This
    • Value

    Parameters

    Returns DecoratorType<This, Value>

    This decorator is similar to @Until('\0', { targetType: String }) but @Until will include the \0 while this decorator always drops it.