~smaioli/azureus/ubuntu-experimental

« back to all changes in this revision

Viewing changes to org/gudy/azureus2/pluginsimpl/local/utils/PooledByteBufferImpl.java

MergedĀ VuzeĀ 4.2.0.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
                buffer.position( DirectByteBuffer.AL_EXTERNAL, 0 );
63
63
        }
64
64
        
 
65
        public
 
66
        PooledByteBufferImpl(
 
67
                byte[]          data,
 
68
                int                     offset,
 
69
                int                     length )
 
70
        {
 
71
                buffer = DirectByteBufferPool.getBuffer( DirectByteBuffer.AL_EXTERNAL, length );
 
72
                
 
73
                buffer.put( DirectByteBuffer.AL_EXTERNAL, data, offset, length );
 
74
                
 
75
                buffer.position( DirectByteBuffer.AL_EXTERNAL, 0 );
 
76
        }
 
77
        
65
78
        public byte[]
66
79
        toByteArray()
67
80
        {