public class PtrMediaBuffer extends java.lang.Object implements IMediaBuffer
Modifier and Type | Field and Description |
---|---|
(package private) long |
ptr
The unmanaged IMediaBuffer represented by this instance.
|
Constructor and Description |
---|
PtrMediaBuffer(long ptr)
Initializes a new managed IMediaBuffer which is to represent a
specific unmanaged IMediaBuffer.
|
Modifier and Type | Method and Description |
---|---|
int |
GetLength() |
int |
GetMaxLength() |
int |
pop(byte[] buffer,
int offset,
int length) |
int |
push(byte[] buffer,
int offset,
int length) |
int |
Release() |
void |
SetLength(int length) |
public PtrMediaBuffer(long ptr)
ptr
- the unmanaged IMediaBuffer to be represented by the
new instancepublic int GetLength() throws java.io.IOException
GetLength
in interface IMediaBuffer
java.io.IOException
public int GetMaxLength() throws java.io.IOException
GetMaxLength
in interface IMediaBuffer
java.io.IOException
public int pop(byte[] buffer, int offset, int length) throws java.io.IOException
pop
in interface IMediaBuffer
java.io.IOException
public int push(byte[] buffer, int offset, int length) throws java.io.IOException
push
in interface IMediaBuffer
java.io.IOException
public int Release()
Release
in interface IMediaBuffer
public void SetLength(int length) throws java.io.IOException
SetLength
in interface IMediaBuffer
java.io.IOException
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.