NameBuffer.h
Go to the documentation of this file.
53 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:196
uint16_t space()
get the number of free characters available
Definition: NameBuffer.h:154
char * endptr()
get a pointer to the next write position
Definition: NameBuffer.h:144
int copy(const char *src, uint16_t srclen)
copies text from a source buffer into a name buffer
Definition: NameBuffer.h:95
NameBuffer(char *buffer, uint16_t size, uint16_t length=0)
Definition: NameBuffer.h:53
NameBuffer(String &s)
Make a NameBuffer point to contents of a String.
Definition: NameBuffer.h:60
bool overflow() const
determine if name buffer overflowed
Definition: NameBuffer.h:175
void terminate()
ensure the buffer has a nul terminator, even if it means overwriting content
Definition: NameBuffer.h:162
int addSep()
When building file paths this method simplified appending separators.
Definition: NameBuffer.h:121