« Gecko Plugin API Reference « Plug-in Side Plug-in API
typedef struct _NPByteRange
{
int32 offset; /* negative offset = from the end */
uint32 length;
struct _NPByteRange* next;
} NPByteRange;
The data structure has the following fields:
offset
length
next
NPByteRange request in the list of requests, or null if this is the last request.
The plug-in seeks within a stream by building a linked list of one or more NPByteRange objects, which represents a set of discontiguous byte ranges. The only plug-in API call that uses the NPByteRange type is NPN_RequestRead(), which lets the plug-in read specified parts of a file without downloading it.
The plug-in is responsible for deleting NPByteRange objects when finished with them. The browser makes a copy if it needs to keep the objects beyond the call to NPN_RequestRead().
Page last modified 05:30, 15 May 2006 by Sheppy