NameBuffer.h
Go to the documentation of this file.
51 NameBuffer(char* buffer, uint16_t size, uint16_t length = 0) : buffer(buffer), size(size), length(length)
Definition: DirectoryTemplate.h:37
a quick'n'dirty name buffer with maximum path allocation
Definition: NameBuffer.h:194
uint16_t space()
get the number of free characters available
Definition: NameBuffer.h:152
char * endptr()
get a pointer to the next write position
Definition: NameBuffer.h:142
int copy(const char *src, uint16_t srclen)
copies text from a source buffer into a name buffer
Definition: NameBuffer.h:93
NameBuffer(char *buffer, uint16_t size, uint16_t length=0)
Definition: NameBuffer.h:51
NameBuffer()=default
NameBuffer(String &s)
Make a NameBuffer point to contents of a String.
Definition: NameBuffer.h:58
bool overflow() const
determine if name buffer overflowed
Definition: NameBuffer.h:173
void terminate()
ensure the buffer has a nul terminator, even if it means overwriting content
Definition: NameBuffer.h:160
int addSep()
When building file paths this method simplified appending separators.
Definition: NameBuffer.h:119
1.9.1