Home | History | Annotate | Download | only in transient

Lines Matching refs:byte_array

86   rtc::scoped_ptr<uint8_t[]> byte_array(new uint8_t[2]);
91 size_t bytes_read = file->Read(byte_array.get(), 2);
95 int16_t value = byte_array[1];
97 value += byte_array[0];
148 rtc::scoped_ptr<uint8_t[]> byte_array(new uint8_t[4]);
153 size_t bytes_read = file->Read(byte_array.get(), 4);
157 ConvertByteArrayToFloat(byte_array.get(), &buffer[floats_read]);
171 rtc::scoped_ptr<uint8_t[]> byte_array(new uint8_t[8]);
176 size_t bytes_read = file->Read(byte_array.get(), 8);
180 ConvertByteArrayToDouble(byte_array.get(), &buffer[doubles_read]);
194 rtc::scoped_ptr<uint8_t[]> byte_array(new uint8_t[2]);
200 byte_array[0] = buffer[int16s_written] & 0xFF;
201 byte_array[1] = (buffer[int16s_written] >> 8) & 0xFF;
203 file->Write(byte_array.get(), 2);
218 rtc::scoped_ptr<uint8_t[]> byte_array(new uint8_t[4]);
224 ConvertFloatToByteArray(buffer[floats_written], byte_array.get());
226 file->Write(byte_array.get(), 4);
241 rtc::scoped_ptr<uint8_t[]> byte_array(new uint8_t[8]);
247 ConvertDoubleToByteArray(buffer[doubles_written], byte_array.get());
249 file->Write(byte_array.get(), 8);