mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
BluRay playlist (mpls) files support
This commit is contained in:
@@ -18,6 +18,13 @@ namespace CUETools.Codecs.BDLPCM
|
||||
end_m = ptr + len;
|
||||
}
|
||||
|
||||
internal FrameReader(FrameReader src, long len)
|
||||
{
|
||||
if (src.ptr_m + len > src.end_m) throw new IndexOutOfRangeException();
|
||||
ptr_m = src.ptr_m;
|
||||
end_m = src.ptr_m + len;
|
||||
}
|
||||
|
||||
internal void read_bytes(byte* dst, int len)
|
||||
{
|
||||
if (ptr_m + len > end_m) throw new IndexOutOfRangeException();
|
||||
@@ -25,6 +32,14 @@ namespace CUETools.Codecs.BDLPCM
|
||||
ptr_m += len;
|
||||
}
|
||||
|
||||
internal byte[] read_bytes(int len)
|
||||
{
|
||||
var res = new byte[len];
|
||||
fixed (byte* ptr = &res[0])
|
||||
read_bytes(ptr, len);
|
||||
return res;
|
||||
}
|
||||
|
||||
internal byte read_byte()
|
||||
{
|
||||
if (ptr_m + 1 > end_m) throw new IndexOutOfRangeException();
|
||||
|
||||
Reference in New Issue
Block a user