blob: 07ad58af15cdc0eb71a975b0528b864b22434f8e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Yahoo. 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
|