blob: e2fcc989f3d5a9cd2edf29a994f68aee2a64de5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "memory_input.h"
namespace vespalib {
Memory
MemoryInput::obtain()
{
return Memory((_data.data + _pos), (_data.size - _pos));
}
Input &
MemoryInput::evict(size_t bytes)
{
_pos += bytes;
return *this;
}
} // namespace vespalib
|