#include <string.h>
#include "RecorderStream.h"
namespace
{
namespace
{
::
(
&
,
&
)
:in(&
)
, out(&
)
{
}
::
()
{
}
bool
::
()
const
{
return
() &&
->
();
}
bool
::
()
const
{
return
false
;
}
bool
::
()
const
{
return
false
;
}
bool
::
()
const
{
return
false
;
}
bool
::
()
const
{
return
() &&
->
();
}
bool
::
()
const
{
return
!=
0
&&
!=
0
&&
->
() &&
->
();
}
void
::
()
{
=
nullptr
;
=
nullptr
;
}
::
()
const
{
return
() ?
->
() : -
1
;
}
::
()
const
{
return
() ?
->
() : -
1
;
}
void
::
(
)
{
CHECK_FAIL(L"RecorderStream::Seek(pos_t)#Operation not supported.");
do
{
throw
(
L"RecorderStream::Seek(pos_t)#Operation not supported."
);}
while
(
0
);
}
void
::
(
)
{
CHECK_FAIL(L"RecorderStream::SeekFromBegin(pos_t)#Operation not supported.");
do
{
throw
(
L"RecorderStream::SeekFromBegin(pos_t)#Operation not supported."
);}
while
(
0
);
}
void
::
(
)
{
CHECK_FAIL(L"RecorderStream::SeekFromEnd(pos_t)#Operation not supported.");
do
{
throw
(
L"RecorderStream::SeekFromEnd(pos_t)#Operation not supported."
);}
while
(
0
);
}
::
(
void
*
,
)
{
=
->
(
,
);
=
->
(
,
);
CHECK_ERROR(written == _size, L"RecorderStream::Read(void*, vint)#Failed to copy data to the output stream.");
do
{
if
(!(
written
==
))
throw
(
L"RecorderStream::Read(void*, vint)#Failed to copy data to the output stream."
);}
while
(
0
);
return
;
}
::
(
void
*
,
)
{
CHECK_FAIL(L"RecorderStream::Write(void*, vint)#Operation not supported.");
do
{
throw
(
L"RecorderStream::Write(void*, vint)#Operation not supported."
);}
while
(
0
);
}
::
(
void
*
,
)
{
CHECK_FAIL(L"RecorderStream::Peek(void*, vint)#Operation not supported.");
do
{
throw
(
L"RecorderStream::Peek(void*, vint)#Operation not supported."
);}
while
(
0
);
}
}
}