Class PtrMediaBuffer
- java.lang.Object
-
- org.jitsi.impl.neomedia.jmfext.media.protocol.wasapi.PtrMediaBuffer
-
- All Implemented Interfaces:
IMediaBuffer
public class PtrMediaBuffer extends Object implements IMediaBuffer
Implements a managed IMediaBuffer which wraps around an unmanaged IMediaBuffer.- Author:
- Lyubomir Marinov
-
-
Constructor Summary
Constructors Constructor Description PtrMediaBuffer(long ptr)Initializes a new managed IMediaBuffer which is to represent a specific unmanaged IMediaBuffer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intGetLength()intGetMaxLength()intpop(byte[] buffer, int offset, int length)intpush(byte[] buffer, int offset, int length)intRelease()voidSetLength(int length)
-
-
-
Method Detail
-
GetLength
public int GetLength() throws IOException- Specified by:
GetLengthin interfaceIMediaBuffer- Throws:
IOException
-
GetMaxLength
public int GetMaxLength() throws IOException- Specified by:
GetMaxLengthin interfaceIMediaBuffer- Throws:
IOException
-
pop
public int pop(byte[] buffer, int offset, int length) throws IOException- Specified by:
popin interfaceIMediaBuffer- Throws:
IOException
-
push
public int push(byte[] buffer, int offset, int length) throws IOException- Specified by:
pushin interfaceIMediaBuffer- Throws:
IOException
-
Release
public int Release()
- Specified by:
Releasein interfaceIMediaBuffer
-
SetLength
public void SetLength(int length) throws IOException- Specified by:
SetLengthin interfaceIMediaBuffer- Throws:
IOException
-
-