e5c814e022
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
18 lines
298 B
C++
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;
|
|
};
|
|
}
|