Lines Matching refs:data
191 const char* data,
194 reinterpret_cast<const uint8_t*>(data),
200 const signed char* data,
203 reinterpret_cast<const uint8_t*>(data),
209 const unsigned char* data,
212 isolate, data, v8::NewStringType::kNormal, length)
216 void SwapBytes16(char* data, size_t nbytes) {
220 if (AlignUp(data, sizeof(uint16_t)) == data) {
222 uint16_t* data16 = reinterpret_cast<uint16_t*>(data);
233 memcpy(&temp, &data[i], sizeof(temp));
235 memcpy(&data[i], &temp, sizeof(temp));
239 void SwapBytes32(char* data, size_t nbytes) {
244 if (AlignUp(data, sizeof(uint32_t)) == data) {
245 uint32_t* data32 = reinterpret_cast<uint32_t*>(data);
256 memcpy(&temp, &data[i], sizeof(temp));
258 memcpy(&data[i], &temp, sizeof(temp));
262 void SwapBytes64(char* data, size_t nbytes) {
266 if (AlignUp(data, sizeof(uint64_t)) == data) {
268 uint64_t* data64 = reinterpret_cast<uint64_t*>(data);
279 memcpy(&temp, &data[i], sizeof(temp));
281 memcpy(&data[i], &temp, sizeof(temp));
416 isolate, str.data(), v8::NewStringType::kNormal, str.size())
552 static_assert(sizeof(T) == 1, "Only supports one-byte data at the moment");
564 static_assert(sizeof(T) == 1, "Only supports one-byte data at the moment");