Skip to content

建议增加 getString 方法 #4

@abevol

Description

@abevol
    std::string getString(uint32_t len)
    {
        std::string result((char*)p_buffer_ + position_, len);
        position_ += len;
        return result;
    }
    std::string getString(uint32_t index, uint32_t len) const
    {
        return {p_buffer_ + index, p_buffer_ + index + len};
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions