diff options
| author | danlark <[email protected]> | 2022-02-10 16:46:10 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:10 +0300 | 
| commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
| tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/codecs/static/static.cpp | |
| parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/codecs/static/static.cpp')
| -rw-r--r-- | library/cpp/codecs/static/static.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/library/cpp/codecs/static/static.cpp b/library/cpp/codecs/static/static.cpp index 71d1f1cce04..44a07dd73a2 100644 --- a/library/cpp/codecs/static/static.cpp +++ b/library/cpp/codecs/static/static.cpp @@ -31,10 +31,10 @@ namespace NCodecs {      TStaticCodecInfo LoadCodecInfoFromStream(IInputStream& in) {          {              TBuffer magic; -            magic.Resize(GetStaticCodecInfoMagic().size());  -            Y_ENSURE_EX(in.Read(magic.Data(), GetStaticCodecInfoMagic().size()) == GetStaticCodecInfoMagic().size(),  +            magic.Resize(GetStaticCodecInfoMagic().size()); +            Y_ENSURE_EX(in.Read(magic.Data(), GetStaticCodecInfoMagic().size()) == GetStaticCodecInfoMagic().size(),                          TCodecException() << "bad codec info"); -            Y_ENSURE_EX(TStringBuf(magic.data(), magic.size()) == GetStaticCodecInfoMagic(),  +            Y_ENSURE_EX(TStringBuf(magic.data(), magic.size()) == GetStaticCodecInfoMagic(),                          TCodecException() << "bad codec info");          } @@ -45,7 +45,7 @@ namespace NCodecs {          Y_ENSURE_EX(hash == DataSignature(info), TCodecException() << "bad codec info");          TStaticCodecInfo result; -        Y_ENSURE_EX(result.ParseFromArray(info.data(), info.size()), TCodecException() << "bad codec info");  +        Y_ENSURE_EX(result.ParseFromArray(info.data(), info.size()), TCodecException() << "bad codec info");          return result;      } @@ -57,7 +57,7 @@ namespace NCodecs {      }      TStaticCodecInfo LoadCodecInfoFromString(TStringBuf data) { -        TMemoryInput m{data.data(), data.size()};  +        TMemoryInput m{data.data(), data.size()};          return LoadCodecInfoFromStream(m);      } @@ -81,7 +81,7 @@ namespace NCodecs {          TArchiveReader ar(TBlob::NoCopy(begin, size));          Y_VERIFY(ar.Count() == 1, "invalid number of entries");          auto blob = ar.ObjectBlobByKey(ar.KeyByIndex(0)); -        return TString{blob.AsCharPtr(), blob.Size()};  +        return TString{blob.AsCharPtr(), blob.Size()};      }      TCodecConstPtr RestoreCodecFromCodecInfo(const TStaticCodecInfo& info) { | 
