Back to Seed Clases

Soup


Classes

Interfaces

Structs

Unions

Enums

Struct Soup.Range

Import line: Soup = imports.gi.Soup;
GIR File: Soup-2.4.gir
C documentation: SoupRange
Struct : Range
Represents a byte range as used in the Range header.
If end is non-negative, then start and end represent the bounds
of of the range, counting from %0. (Eg, the first 500 bytes would be
represented as start = %0 and end = %499.)
If end is %-1 and start is non-negative, then this represents a
range starting at start and ending with the last byte of the
requested resource body. (Eg, all but the first 500 bytes would be
If end is %-1 and start is negative, then it represents a "suffix
range", referring to the last -start bytes of the resource body.
(Eg, the last 500 bytes would be start = %-500 and end = %-1.)
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new Soup.Range ()
Create a new Soup.Range
Create a new Soup.Range
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Soup.MessageHeaders
Method
free_ranges (Range ranges) : none
Frees the array of ranges returned from soup_message_headers_get_ranges().
Soup.MessageHeaders
Method
get_ranges (gint64 total_length, Range ranges, gint32 length) : gboolean
Parses hdrs's Range header and returns an array of the requested
byte ranges.
Soup.MessageHeaders
Method
set_ranges (Range ranges, gint32 length) : none
Sets hdrs's Range header to request the indicated ranges.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:16:56 GMT+0800 (HKT)