mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 03:59:36 +00:00
Lots of stuff
This commit is contained in:
36
PortabilityLayer/PascalStr.h
Normal file
36
PortabilityLayer/PascalStr.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef __PL_PASCALSTR_H__
|
||||
#define __PL_PASCALSTR_H__
|
||||
|
||||
#include "UnsafePascalStr.h"
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
template<size_t TSize>
|
||||
class PascalStr : public UnsafePascalStr<TSize, true>
|
||||
{
|
||||
public:
|
||||
PascalStr();
|
||||
PascalStr(size_t size, const char *str);
|
||||
};
|
||||
}
|
||||
|
||||
#include <string.h>
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
template<size_t TSize>
|
||||
inline PascalStr<TSize>::PascalStr()
|
||||
: UnsafePascalStr<TSize, true>(0, nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
template<size_t TSize>
|
||||
PascalStr<TSize>::PascalStr(size_t size, const char *str)
|
||||
: UnsafePascalStr<TSize, true>(size, str)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user