chromium/third_party/skia/src/pdf/SkDeflate.cpp

/*
 * Copyright 2010 The Android Open Source Project
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#include "src/pdf/SkDeflate.h"

#include "include/private/base/SkAssert.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkTFitsIn.h"
#include "include/private/base/SkTo.h"
#include "src/core/SkTraceEvent.h"

#include <algorithm>
#include <cstdint>
#include <cstring>

#include "zlib.h"  // NO_G3_REWRITE

namespace {

// Different zlib implementations use different T.
// We've seen size_t and unsigned.
template <typename T> void* skia_alloc_func(void*, T items, T size) {}

void skia_free_func(void*, void* address) {}

}  // namespace

#define SKDEFLATEWSTREAM_INPUT_BUFFER_SIZE
#define SKDEFLATEWSTREAM_OUTPUT_BUFFER_SIZE
                                                  // enough to always do a
                                                  // single loop.

// called by both write() and finalize()
static void do_deflate(int flush,
                       z_stream* zStream,
                       SkWStream* out,
                       unsigned char* inBuffer,
                       size_t inBufferSize) {}

// Hide all zlib impl details.
struct SkDeflateWStream::Impl {};

SkDeflateWStream::SkDeflateWStream(SkWStream* out,
                                   int compressionLevel,
                                   bool gzip)
    :{}

SkDeflateWStream::~SkDeflateWStream() {}

void SkDeflateWStream::finalize() {}

bool SkDeflateWStream::write(const void* void_buffer, size_t len) {}

size_t SkDeflateWStream::bytesWritten() const {}