Implement initial engio experiments

This commit is contained in:
2023-10-24 17:12:03 -04:00
parent 5381b5708a
commit 0ccc08c7dc
2 changed files with 17 additions and 5 deletions

View File

@@ -4,6 +4,8 @@
#include "lpx-basebuffer.hpp"
using FlxSimpleDynamic = SimpleDynamic<std::string>;
class FlxStreamBufferCore {
private:
bool err_eof_on_read_;
@@ -28,13 +30,13 @@ class FlxStreamBuffer : public BaseBuffer<FlxStreamBufferCore, std::string> {
public:
using BaseBuffer::BaseBuffer;
void write_dxyz(const FVector &xyz) {
void write_dvector(const FVector &xyz) {
write_double(xyz.X);
write_double(xyz.Y);
write_double(xyz.Z);
}
FVector read_dxyz() {
FVector read_dvector() {
double x = read_double();
double y = read_double();
double z = read_double();