mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Merge pull request #136 from oshogbo:zstd_type
PiperOrigin-RevId: 439542219 Change-Id: Ie6bdff05b5aa50c6fccb0786b073240e72c4b215
This commit is contained in:
commit
00fbfeb647
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include "contrib/c-blosc/sandboxed.h"
|
#include "contrib/c-blosc/sandboxed.h"
|
||||||
|
|
||||||
static const size_t kFileMaxSize = 1024 * 1024 * 1024; // 1GB
|
constexpr size_t kFileMaxSize = 1024 * 1024 * 1024; // 1GB
|
||||||
|
|
||||||
std::streamsize GetStreamSize(std::ifstream& stream) {
|
std::streamsize GetStreamSize(std::ifstream& stream) {
|
||||||
stream.seekg(0, std::ios_base::end);
|
stream.seekg(0, std::ios_base::end);
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "contrib/zstd/sandboxed.h"
|
#include "contrib/zstd/sandboxed.h"
|
||||||
|
|
||||||
static const size_t kFileMaxSize = 1024 * 1024 * 1024; // 1GB
|
constexpr size_t kFileMaxSize = 1024 * 1024 * 1024; // 1GB
|
||||||
|
|
||||||
std::streamsize GetStreamSize(std::ifstream& stream) {
|
std::streamsize GetStreamSize(std::ifstream& stream) {
|
||||||
stream.seekg(0, std::ios_base::end);
|
stream.seekg(0, std::ios_base::end);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user