aligned.cpp 663 B

123456789101112131415161718192021222324252627282930
  1. #include "aligned.h"
  2. size_t TAlignedInput::DoRead(void* ptr, size_t len) {
  3. size_t ret = Stream_->Read(ptr, len);
  4. Position_ += ret;
  5. return ret;
  6. }
  7. size_t TAlignedInput::DoSkip(size_t len) {
  8. size_t ret = Stream_->Skip(len);
  9. Position_ += ret;
  10. return ret;
  11. }
  12. size_t TAlignedInput::DoReadTo(TString& st, char ch) {
  13. size_t ret = Stream_->ReadTo(st, ch);
  14. Position_ += ret;
  15. return ret;
  16. }
  17. ui64 TAlignedInput::DoReadAll(IOutputStream& out) {
  18. ui64 ret = Stream_->ReadAll(out);
  19. Position_ += ret;
  20. return ret;
  21. }
  22. void TAlignedOutput::DoWrite(const void* ptr, size_t len) {
  23. Stream_->Write(ptr, len);
  24. Position_ += len;
  25. }