dummy_zlib_client.cc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Copyright 2016 The Bazel Authors. All rights reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #include <algorithm>
  15. #include "third_party/ijar/common.h"
  16. #include "third_party/ijar/zlib_client.h"
  17. namespace devtools_ijar {
  18. u4 ComputeCrcChecksum(u1* buf, size_t length) { return 0; }
  19. size_t TryDeflate(u1* buf, size_t length) { return 0; }
  20. Decompressor::Decompressor() {}
  21. Decompressor::~Decompressor() {}
  22. DecompressedFile* Decompressor::UncompressFile(const u1* buffer,
  23. size_t bytes_avail) {
  24. return NULL;
  25. }
  26. char* Decompressor::GetError() { return NULL; }
  27. int Decompressor::error(const char* fmt, ...) { return 0; }
  28. } // namespace devtools_ijar