Shaka Packager SDK
buffer_callback_params.h
1 // Copyright 2017 Google Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 
7 #ifndef PACKAGER_FILE_PUBLIC_BUFFER_CALLBACK_PARAMS_H_
8 #define PACKAGER_FILE_PUBLIC_BUFFER_CALLBACK_PARAMS_H_
9 
10 #include <functional>
11 
12 namespace shaka {
13 
19  std::function<int64_t(const std::string& name, void* buffer, uint64_t size)>
28  std::function<
29  int64_t(const std::string& name, const void* buffer, uint64_t size)>
31 };
32 
33 } // namespace shaka
34 
35 #endif // PACKAGER_FILE_PUBLIC_BUFFER_CALLBACK_PARAMS_H_
shaka
All the methods that are virtual are virtual for mocking.
Definition: gflags_hex_bytes.cc:11
shaka::BufferCallbackParams::read_func
std::function< int64_t(const std::string &name, void *buffer, uint64_t size)> read_func
Definition: buffer_callback_params.h:20
shaka::BufferCallbackParams::write_func
std::function< int64_t(const std::string &name, const void *buffer, uint64_t size)> write_func
Definition: buffer_callback_params.h:30
shaka::BufferCallbackParams
Buffer callback params.
Definition: buffer_callback_params.h:15