OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:readableByteChannel
(Results
1 - 3
of
3
) sorted by null
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
FreeBox.java
28
import java.nio.channels.
ReadableByteChannel
;
95
public void parse(
ReadableByteChannel
readableByteChannel
, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException {
96
if (
readableByteChannel
instanceof FileChannel && contentSize > 1024 * 1024) {
98
data = ((FileChannel)
readableByteChannel
).map(FileChannel.MapMode.READ_ONLY, ((FileChannel)
readableByteChannel
).position(), contentSize);
99
((FileChannel)
readableByteChannel
).position(((FileChannel)
readableByteChannel
).position() + contentSize);
102
data = ChannelHelper.readFully(
readableByteChannel
, contentSize);
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/
MediaDataBox.java
30
import java.nio.channels.
ReadableByteChannel
;
138
public void parse(
ReadableByteChannel
readableByteChannel
, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException {
142
if (
readableByteChannel
instanceof FileChannel && (contentSize > AbstractBox.MEM_MAP_THRESHOLD)) {
143
this.fileChannel = ((FileChannel)
readableByteChannel
);
144
this.startPosition = ((FileChannel)
readableByteChannel
).position();
145
((FileChannel)
readableByteChannel
).position(((FileChannel)
readableByteChannel
).position() + contentSize);
147
content = ChannelHelper.readFully(
readableByteChannel
, l2i(contentSize));
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/
AbstractBox.java
32
import java.nio.channels.
ReadableByteChannel
;
97
* @param
readableByteChannel
the (part of the) iso file to parse
103
public void parse(
ReadableByteChannel
readableByteChannel
, ByteBuffer header, long contentSize, BoxParser boxParser) throws IOException {
104
if (
readableByteChannel
instanceof FileChannel && contentSize > MEM_MAP_THRESHOLD) {
109
content = ((FileChannel)
readableByteChannel
).map(FileChannel.MapMode.READ_ONLY, ((FileChannel)
readableByteChannel
).position(), contentSize);
110
((FileChannel)
readableByteChannel
).position(((FileChannel)
readableByteChannel
).position() + contentSize);
113
content = ChannelHelper.readFully(
readableByteChannel
, contentSize)
[
all
...]
Completed in 44 milliseconds