BytesResource

open class BytesResource : Resource<Z>

An com.bumptech.glide.load.engine.Resource wrapping a byte array.

Constructors

Link copied to clipboard
open fun BytesResource(bytes: Array<Byte>)

Functions

Link copied to clipboard
open fun get(): Array<Byte>
In most cases it will only be retrieved once (see linked methods).
Link copied to clipboard
open fun getResourceClass(): Class<Array<Byte>>
Returns the Class of the wrapped resource.
Link copied to clipboard
open fun getSize(): Int
Returns the size in bytes of the wrapped resource to use to determine how much of the memory cache this resource uses.
Link copied to clipboard
open fun recycle()
Cleans up and recycles internal resources.