mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added an overloaded read method to InputStream which takes a size_t as the size parameter, rather than an int
This commit is contained in:
parent
01f0ed3067
commit
f746672c19
3 changed files with 25 additions and 3 deletions
|
|
@ -30,11 +30,11 @@ namespace juce
|
|||
namespace WindowsMediaCodec
|
||||
{
|
||||
|
||||
class JuceIStream : public ComBaseClassHelper <IStream>
|
||||
class JuceIStream : public ComBaseClassHelper<IStream>
|
||||
{
|
||||
public:
|
||||
JuceIStream (InputStream& in) noexcept
|
||||
: ComBaseClassHelper <IStream> (0), source (in)
|
||||
: ComBaseClassHelper<IStream> (0), source (in)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ public:
|
|||
|
||||
JUCE_COMRESULT Read (void* dest, ULONG numBytes, ULONG* bytesRead)
|
||||
{
|
||||
auto numRead = source.read (dest, numBytes);
|
||||
auto numRead = source.read (dest, (size_t) numBytes);
|
||||
|
||||
if (bytesRead != nullptr)
|
||||
*bytesRead = numRead;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue