29#define _Class _URLCachedResponse
39 return other && $(self,
isEqual, other);
56 that->
size = this->size;
107 return this->size == that->
size
117#pragma mark - URLCachedResponse
145#pragma mark - Class lifecycle
170 .name =
"URLCachedResponse",
174 .interfaceSize =
sizeof(URLCachedResponseInterface),
static Array * init(Array *self)
ident release(ident obj)
Atomically decrement the given Object's reference count. If the resulting reference count is 0,...
Class * _initialize(const ClassDef *def)
Initializes the given Class.
#define alloc(type)
Allocate and initialize and instance of type.
#define super(type, obj, method,...)
static Data * initWithBytes(Data *self, const uint8_t *bytes, size_t length)
int HashForInteger(int hash, const long integer)
Accumulates the hash value of integer into hash.
int HashForObject(int hash, const ident obj)
Accumulates the hash value of object into hash.
Utilities for calculating hash values.
#define HASH_SEED
The hash seed value.
static bool isKindOfClass(const Object *self, const Class *clazz)
Class * _URLCachedResponse(void)
static bool isEqual(const Object *self, const Object *other)
static bool objectEquals(const Object *self, const Object *other)
Tests equality of two Objects, accounting for NULL.
static void dealloc(Object *self)
static Object * copy(const Object *self)
static void initialize(Class *clazz)
static URLCachedResponse * initWithResponseData(URLCachedResponse *self, const URLResponse *response, const Data *data)
static int hash(const Object *self)
#define do_once(once, block)
Executes the given block at most one time.
ClassDefs are passed to _initialize via an archetype to initialize a Class.
The runtime representation of a Class.
ident interface
The interface of the Class.
size_t length
The length of bytes.
uint8_t * bytes
The bytes.
Microsecond-precision immutable dates.
Object is the root Class of The Objectively Class hierarchy.
Object * copy(const Object *self)
Creates a shallow copy of this Object.
void dealloc(Object *self)
Frees all resources held by this Object.
URLResponse * response
The HTTP response.
Data * data
The response body.
Date * timestamp
The time this response was cached.
size_t size
The cached body size.
A protocol-agnostic abstraction for URLSessionTask responses.
Dictionary * httpHeaders
The HTTP response headers.
int httpStatusCode
The HTTP response status code.