Home
last modified time | relevance | path

Searched refs:write_u16 (Results 1 – 20 of 20) sorted by relevance

/external/rust/crates/zip/src/
Dwrite.rs474 self.write_u16::<LittleEndian>(pad.len() as u16) in start_file_aligned()
607 writer.write_u16::<LittleEndian>(extra_field_length)?; in end_extra_data()
1055 writer.write_u16::<LittleEndian>(file.version_needed())?; in write_local_file_header()
1062 writer.write_u16::<LittleEndian>(flag)?; in write_local_file_header()
1065 writer.write_u16::<LittleEndian>(file.compression_method.to_u16())?; in write_local_file_header()
1067 writer.write_u16::<LittleEndian>(file.last_modified_time.timepart())?; in write_local_file_header()
1068 writer.write_u16::<LittleEndian>(file.last_modified_time.datepart())?; in write_local_file_header()
1080 writer.write_u16::<LittleEndian>(file.file_name.as_bytes().len() as u16)?; in write_local_file_header()
1083 writer.write_u16::<LittleEndian>(extra_field_length)?; in write_local_file_header()
1128 writer.write_u16::<LittleEndian>(version_made_by)?; in write_central_directory_header()
[all …]
Dspec.rs99 writer.write_u16::<LittleEndian>(self.disk_number)?; in write()
100 writer.write_u16::<LittleEndian>(self.disk_with_central_directory)?; in write()
101 writer.write_u16::<LittleEndian>(self.number_of_files_on_this_disk)?; in write()
102 writer.write_u16::<LittleEndian>(self.number_of_files)?; in write()
105 writer.write_u16::<LittleEndian>(self.zip_file_comment.len() as u16)?; in write()
209 writer.write_u16::<LittleEndian>(self.version_made_by)?; in write()
210 writer.write_u16::<LittleEndian>(self.version_needed_to_extract)?; in write()
/external/rust/crates/zip/tests/
Dend_to_end.rs105 zip.write_u16::<LittleEndian>(0xbeef)?; in write_test_archive()
106 zip.write_u16::<LittleEndian>(EXTRA_DATA.len() as u16)?; in write_test_archive()
139 extra_data.write_u16::<LittleEndian>(0xbeef)?; in check_test_archive()
140 extra_data.write_u16::<LittleEndian>(EXTRA_DATA.len() as u16)?; in check_test_archive()
/external/rust/crates/ahash/src/
Dfallback_hash.rs134 fn write_u16(&mut self, i: u16) { in write_u16() method
228 fn write_u16(&mut self, i: u16) { in write_u16() method
275 fn write_u16(&mut self, i: u16) { in write_u16() method
327 fn write_u16(&mut self, _i: u16) {} in write_u16() method
Daes_hash.rs115 fn write_u16(&mut self, i: u16) { in write_u16() method
242 fn write_u16(&mut self, i: u16) { in write_u16() method
289 fn write_u16(&mut self, i: u16) { in write_u16() method
347 fn write_u16(&mut self, _i: u16) {} in write_u16() method
/external/rust/crates/regex-automata/src/
Dbyteorder.rs8 fn write_u16(buf: &mut [u8], n: u16); in write_u16() method
44 fn write_u16(buf: &mut [u8], n: u16) {
Dsparse.rs732 NativeEndian::write_u16(&mut trans[pos..], n as u16); in to_sized()
802 A::write_u16(&mut buf[i..], 0xFEFF); in to_bytes()
805 A::write_u16(&mut buf[i..], 1); in to_bytes()
815 A::write_u16(&mut buf[i..], state_size as u16); in to_bytes()
822 A::write_u16(&mut buf[i..], options); in to_bytes()
840 A::write_u16(&mut buf[i..], state.ntrans as u16); in to_bytes()
970 NativeEndian::write_u16(&mut trans[pos..], trans_count); in from_dense_sized()
Dstate_id.rs79 2 => E::write_u16(slice, id.to_usize() as u16), in write_state_id_bytes()
233 NativeEndian::write_u16(slice, self) in write_bytes()
Ddense.rs1247 A::write_u16(&mut buf[i..], 0xFEFF); in to_bytes()
1250 A::write_u16(&mut buf[i..], 1); in to_bytes()
1260 A::write_u16(&mut buf[i..], state_size as u16); in to_bytes()
1270 A::write_u16(&mut buf[i..], options); in to_bytes()
/external/rust/crates/fxhash/
Dlib.rs150 fn write_u16(&mut self, i: u16) { in write_u16() method
214 fn write_u16(&mut self, i: u16) { in write_u16() method
269 fn write_u16(&mut self, i: u16) { in write_u16() method
/external/rust/crates/serde_cbor/src/
Dser.rs152 fn write_u16(&mut self, major: u8, value: u16) -> Result<()> { in write_u16() function
165 self.write_u16(major, value as u16) in write_u32()
243 self.write_u16(1, -(value + 1) as u16) in serialize_i16()
245 self.write_u16(0, value as u16) in serialize_i16()
289 self.write_u16(0, value) in serialize_u16()
/external/rust/crates/byteorder/src/
Dlib.rs383 fn write_u16(buf: &mut [u8], n: u16); in write_u16() method
767 Self::write_u16(buf, n as u16) in write_i16()
2022 fn write_u16(buf: &mut [u8], n: u16) { in write_u16() method
2094 write_slice!(src, dst, u16, 2, Self::write_u16); in write_u16_into()
2230 fn write_u16(buf: &mut [u8], n: u16) { in write_u16() method
2294 write_slice!(src, dst, u16, 2, Self::write_u16); in write_u16_into()
2541 write_u16
3098 too_small!(small_u16, 1, 0, read_u16, write_u16);
3508 write_u16
Dio.rs1151 fn write_u16<T: ByteOrder>(&mut self, n: u16) -> Result<()> { in write_u16() method
1153 T::write_u16(&mut buf, n); in write_u16()
/external/rust/crates/rustc-hash/src/
Dlib.rs117 fn write_u16(&mut self, i: u16) { in write_u16() method
/external/rust/crates/tokio/src/io/util/
Dasync_write_ext.rs482 fn write_u16(&mut self, n: u16) -> WriteU16;
/external/flatbuffers/rust/flexbuffers/src/builder/
Dvalue.rs289 (UInt(x), W16) => buffer.write_u16::<LittleEndian>(x as u16), in store_value()
/external/rust/crates/byteorder/benches/
Dbench.rs125 bench_num!(u16, MAX, read_u16, write_u16, 2, [1, 2]);
/external/rust/crates/zerocopy/src/
Dbyteorder.rs323 write_u16,
/external/rust/crates/serde_json/src/
Dser.rs126 .write_u16(&mut self.writer, value) in serialize_u16()
946 .write_u16(&mut self.ser.writer, value) in serialize_u16()
1600 fn write_u16<W>(&mut self, writer: &mut W, value: u16) -> io::Result<()> in write_u16() method
/external/rust/crates/tokio/tests/
Dasync_send_sync.rs626 tokio::io::AsyncWriteExt::write_u16(&mut BoxAsyncWrite, u16): Send & Sync & !Unpin