mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Add code to print a buffer descriptor.
This commit is contained in:
parent
baf01b93e3
commit
14cf3b7343
@ -18,4 +18,22 @@ public class AvBufferDescriptor {
|
|||||||
this.offset = desc.offset;
|
this.offset = desc.offset;
|
||||||
this.length = desc.length;
|
this.length = desc.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void print()
|
||||||
|
{
|
||||||
|
print(offset, length);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void print(int length)
|
||||||
|
{
|
||||||
|
print(this.offset, length);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void print(int offset, int length)
|
||||||
|
{
|
||||||
|
for (int i = offset; i < offset+length; i++) {
|
||||||
|
System.out.printf("%d: %02x \n", i, data[i]);
|
||||||
|
}
|
||||||
|
System.out.println();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user