Here are the examples of the csharp api System.IO.Stream.ReadUInt32() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
19
Source : StreamExt.cs
with GNU General Public License v3.0
from Fe7n
with GNU General Public License v3.0
from Fe7n
public unsafe static float ReadSingle(this Stream s)
{
uint num = s.ReadUInt32();
return *(float*)(&num);
}
19
Source : NCMFile.cs
with GNU General Public License v3.0
from HyPlayer
with GNU General Public License v3.0
from HyPlayer
private static byte[] ReadChunk(Stream fs)
{
var len = fs.ReadUInt32();
if (len > 0)
{
var chunk = new byte[len];
// unsafe
fs.Read(chunk, 0, (int)len);
return chunk;
}
return null;
}
19
Source : StreamExtensions.cs
with Apache License 2.0
from Xeeynamo
with Apache License 2.0
from Xeeynamo
public static uint PeekUInt32(this Stream stream) => stream.Peek(x => x.ReadUInt32());