Merge branch 'develop' of ssh://barant.com/git/CoreUtils into develop

This commit is contained in:
Brad Arant 2025-03-06 14:53:56 -08:00
commit 96f5c02435
2 changed files with 9 additions and 1 deletions

View File

@ -279,6 +279,13 @@ namespace coreutils {
return *this; return *this;
} }
MString &MString::read(int fd, int count) {
char ch;
while(count-- && ::read(fd, &ch, 1))
write(ch);
return *this;
}
int MString::offset() { int MString::offset() {
return cursor - data; return cursor - data;
} }

View File

@ -231,6 +231,7 @@ namespace coreutils {
/// ///
MString &read(int fd); MString &read(int fd);
MString &read(int fd, int len);
/// ///
/// ///