memgraph/src/io/network/stream_buffer.hpp
Matej Ferencevic e5c814e022 First version of new bolt decoder and tests.
Summary:
Extracted constants to codes.hpp.

Extracted bolt constants.

Extracted StreamBuffer and fixed data type.

Extracted bolt testdata.

Added bolt buffer and tests.

Added bolt decoder buffer and tests.

Renamed bolt testdata.

Reviewers: dgleich, buda, matej.gradicek

Reviewed By: buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D220
2017-04-06 14:30:19 +02:00

18 lines
298 B
C++

#pragma once
#include <cstdint>
namespace io::network {
/**
* StreamBuffer
* Used for getting a pointer and size of a preallocated block of memory.
* The network stack than uses this block of memory to read data from a
* socket.
*/
struct StreamBuffer {
uint8_t *data;
size_t len;
};
}