Add OpType for Metal Claw operators
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <ox/std/byteswap.hpp>
|
||||
#include <ox/std/string.hpp>
|
||||
#include "err.hpp"
|
||||
#include "optype.hpp"
|
||||
#include "presencemask.hpp"
|
||||
|
||||
namespace ox {
|
||||
@@ -51,6 +52,10 @@ class MetalClawReader {
|
||||
|
||||
void setFields(int fields);
|
||||
|
||||
OpType opType() {
|
||||
return OpType::Read;
|
||||
}
|
||||
|
||||
private:
|
||||
template<typename I>
|
||||
int readInteger(I *val);
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <ox/std/string.hpp>
|
||||
#include <ox/std/types.hpp>
|
||||
#include "err.hpp"
|
||||
#include "optype.hpp"
|
||||
#include "presencemask.hpp"
|
||||
|
||||
namespace ox {
|
||||
@@ -53,6 +54,10 @@ class MetalClawWriter {
|
||||
|
||||
size_t size();
|
||||
|
||||
OpType opType() {
|
||||
return OpType::Write;
|
||||
}
|
||||
|
||||
private:
|
||||
template<typename I>
|
||||
int appendInteger(I val);
|
||||
|
||||
Reference in New Issue
Block a user