Contents
constructor
name
get_
mime_
type
is_
stream
ref
unref
new
new_
dup
stream_
new
GJS API Reference
Epc-1.0
Epc
Contents
Class Contents
Hierarchy
Contents
Index
Constructors
constructor
Properties
name
Methods
get_
mime_
type
is_
stream
ref
unref
new
new_
dup
stream_
new
Constructors
constructor
new
Contents
(
type
:
string
, data
:
object
, length
:
number
, destroy_data
:
GLib
.
DestroyNotify
)
:
Contents
Parameters
type:
string
data:
object
length:
number
destroy_data:
GLib
.
DestroyNotify
Returns
Contents
Properties
Static
name
name
:
string
Methods
get_
mime_
type
get_
mime_
type
(
)
:
string
Returns
string
is_
stream
is_
stream
(
)
:
boolean
Returns
boolean
ref
ref
(
)
:
Contents
Returns
Contents
unref
unref
(
)
:
void
Returns
void
Static
new
new
(
type
:
string
, data
:
object
, length
:
number
, destroy_data
:
GLib
.
DestroyNotify
)
:
Contents
Parameters
type:
string
data:
object
length:
number
destroy_data:
GLib
.
DestroyNotify
Returns
Contents
Static
new_
dup
new_
dup
(
type
:
string
, data
:
object
, length
:
number
)
:
Contents
Parameters
type:
string
data:
object
length:
number
Returns
Contents
Static
stream_
new
stream_
new
(
type
:
string
, callback
:
ContentsReadFunc
)
:
Contents
Parameters
type:
string
callback:
ContentsReadFunc
Returns
Contents
Contents
constructor
name
get_
mime_
type
is_
stream
ref
unref
new
new_
dup
stream_
new
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJFcGNfMV8wLkVwYy5Db250ZW50cy5odG1sI2NvbnN0cnVjdG9yIiwibmFtZSI6ImNvbnN0cnVjdG9yIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MgdHNkLWlzLX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