1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

Correções de erros encotrados no pipeline

This commit is contained in:
Danilo 2024-11-09 17:33:33 -03:00
parent 7d1533f18e
commit f151932043
3 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,7 @@
#include "xna/default.hpp"
#include "xna/csharp/stream.hpp"
#include "pipeline-enums.hpp"
#include "enums.hpp"
#include "default.hpp"
#include <stack>

View File

@ -6,9 +6,13 @@
namespace xna {
class ContentTypeWriter;
class ContentTypeWriterFactory;
class ContentCompiler;
class ContentWriter;
using P_ContentTypeWriter = sptr<ContentTypeWriter>;
using P_ContentTypeWriterFactory = sptr<ContentTypeWriterFactory>;
using P_ContentCompiler = sptr<ContentCompiler>;
using P_ContentWriter = sptr<ContentWriter>;
}
#endif

View File

@ -87,6 +87,8 @@ namespace xna {
//A simplified port of the System.IO.MemoryStream.
class MemoryStream : public Stream {
public:
constexpr MemoryStream(){}
constexpr MemoryStream(std::vector<uint8_t> const& bytes):
_buffer(bytes),
_length(static_cast<int64_t>(bytes.size())){}