Home | History | Annotate | Download | only in Shared

Lines Matching defs:bytes

43     static PassRefPtr<WebData> createWithoutCopying(const unsigned char* bytes, size_t size, FreeDataFunction freeDataFunction, const void* context)
45 return adoptRef(new WebData(bytes, size, freeDataFunction, context));
48 static PassRefPtr<WebData> create(const unsigned char* bytes, size_t size)
54 memcpy(copiedBytes, bytes, size);
70 const unsigned char* bytes() const { return m_bytes; }
74 WebData(const unsigned char* bytes, size_t size, FreeDataFunction freeDataFunction, const void* context)
75 : m_bytes(bytes)
82 static void fastFreeBytes(unsigned char* bytes, const void*)
84 if (bytes)
85 fastFree(static_cast<void*>(bytes));