| /external/rust/crates/serde_cbor/src/ |
| D | write.rs | 8 use crate::error; 13 /// This trait is similar to the [`Write`]() trait in the standard library, 16 /// Any object implementing `std::io::Write` 17 /// can be wrapped in an [`IoWrite`](../write/struct.IoWrite.html) that implements 19 pub trait Write: private::Sealed { interface 20 /// The type of error returned when a write operation fails. 22 type Error: Into<error::Error>; typedef 24 /// Attempts to write an entire buffer into this write. 26 fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error>; in write_all() argument 32 /// This trait is similar to the [`Write`]() trait in the standard library, [all …]
|
| /external/oss-fuzz/projects/libyaml/ |
| D | libyaml_deconstructor_fuzzer.c | 7 // http://www.apache.org/licenses/LICENSE-2.0 36 size -= 2; in LLVMFuzzerTestOneInput() 65 /* Create and emit the STREAM-START event. */ in LLVMFuzzerTestOneInput() 68 goto error; in LLVMFuzzerTestOneInput() 70 goto error; in LLVMFuzzerTestOneInput() 72 /* Create and emit the DOCUMENT-START event. */ in LLVMFuzzerTestOneInput() 75 goto error; in LLVMFuzzerTestOneInput() 77 goto error; in LLVMFuzzerTestOneInput() 79 /* Create and emit the SEQUENCE-START event. */ in LLVMFuzzerTestOneInput() 84 goto error; in LLVMFuzzerTestOneInput() [all …]
|
| /external/rust/crates/der/src/ |
| D | error.rs | 1 //! Error types. 15 pub type Result<T> = core::result::Result<T, Error>; 17 /// Error type. 19 pub struct Error { struct 20 /// Kind of error. 23 /// Position inside of message where error occurred. 27 impl Error { impl 28 /// Create a new [`Error`]. 29 pub fn new(kind: ErrorKind, position: Length) -> Error { in new() argument 30 Error { in new() [all …]
|
| /external/rust/crates/fs-err/src/ |
| D | errors.rs | 1 use std::error::Error as StdError; 18 Write, enumerator 40 /// Contains an IO error that has a file path attached. 43 /// another IO error. 45 pub(crate) struct Error { struct 47 source: io::Error, argument 51 impl Error { implementation 52 pub fn build(source: io::Error, kind: ErrorKind, path: impl Into<PathBuf>) -> io::Error { in build() argument 53 io::Error::new( in build() 64 impl fmt::Display for Error { implementation [all …]
|
| /external/rust/crates/libloading/src/ |
| D | error.rs | 3 /// A `dlerror` error. 7 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { in fmt() 13 fn from(value: &CStr) -> Self { in from() 18 /// A Windows API error. 19 pub struct WindowsError(pub(crate) std::io::Error); 22 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { in fmt() 30 pub enum Error { enum 33 /// The source error. 36 /// The `dlopen` call failed and system did not report an error. 40 /// The source error. [all …]
|
| /external/swiftshader/third_party/llvm-16.0/llvm/lib/XRay/ |
| D | FDRTraceWriter.cpp | 1 //===- FDRTraceWriter.cpp - XRay FDR Trace Writer ---------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // Test a utility that can write out XRay FDR Mode formatted trace files. 11 //===----------------------------------------------------------------------===// 26 static size_t write(support::endian::Writer &OS, Tuple &&T) { in write() function 27 OS.write(std::get<Index>(T)); in write() 28 return sizeof(std::get<Index>(T)) + IndexedWriter<Index + 1>::write(OS, T); in write() 36 static size_t write(support::endian::Writer &OS, Tuple &&) { in write() function 42 Error writeMetadata(support::endian::Writer &OS, Values &&... Ds) { in writeMetadata() [all …]
|
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/XRay/ |
| D | FDRTraceWriter.cpp | 1 //===- FDRTraceWriter.cpp - XRay FDR Trace Writer ---------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 // Test a utility that can write out XRay FDR Mode formatted trace files. 11 //===----------------------------------------------------------------------===// 27 static size_t write(support::endian::Writer &OS, Tuple &&T) { in write() function 28 OS.write(std::get<Index>(T)); in write() 29 return sizeof(std::get<Index>(T)) + IndexedWriter<Index + 1>::write(OS, T); in write() 38 static size_t write(support::endian::Writer &OS, Tuple &&) { in write() function 44 Error writeMetadata(support::endian::Writer &OS, Values &&... Ds) { in writeMetadata() [all …]
|
| /external/rust/crates/vhost/src/ |
| D | lib.rs | 2 // SPDX-License-Identifier: Apache-2.0 or BSD-3-Clause 7 //! is a set of three different single-producer, single-consumer ring structures designed to store 8 //! generic scatter-gather I/O. The virtio specification 1.1 introduces an alternative compact 10 //! hardware implemented virtio devices. The packed virtqueue uses read-write memory, that means 25 //! Later Vhost-user protocol is introduced to complement the ioctl interface used to control the 35 #[cfg_attr(feature = "vhost-user", macro_use)] 37 #[cfg_attr(feature = "vhost-kern", macro_use)] 43 #[cfg(feature = "vhost-net")] 45 #[cfg(feature = "vhost-vdpa")] 47 #[cfg(feature = "vhost-kern")] [all …]
|
| /external/rust/crates/gdbstub/src/stub/ |
| D | error.rs | 8 /// An error that may occur while interacting with a 12 /// Error initializing the session. 14 /// Error reading data. 16 /// Error writing data. 17 Write, enumerator 22 /// Connection Error 24 /// Target encountered a fatal error. 38 // push out this feature as a non-breaking change now. 41 // Internal - A non-fatal error occurred (with errno-style error code) 43 // This "dummy" error is required as part of the internal [all …]
|
| /external/rust/crates/gdbstub/src/protocol/ |
| D | response_writer.rs | 5 #[cfg(feature = "trace-pkt")] 7 #[cfg(feature = "trace-pkt")] 13 /// Newtype around a Connection error. Having a newtype allows implementing a 14 /// `From<ResponseWriterError<C>> for crate::Error<T, C>`, which greatly 15 /// simplifies some of the error handling in the main gdbstub. 17 pub struct Error<C>(pub C); struct 19 /// A wrapper around [`Connection`] that computes the single-byte checksum of 31 #[cfg(feature = "trace-pkt")] 37 pub fn new(inner: &'a mut C, rle_enabled: bool) -> Self { in new() 47 #[cfg(feature = "trace-pkt")] in new() [all …]
|
| /external/libxml2/example/ |
| D | testWriter.c | 5 * the various methods to write to a filename, to a memory 26 #define MY_ENCODING "ISO-8859-1" 74 printf("testXmlwriterFilename: Error creating the xml writer\n"); in testXmlwriterFilename() 79 * encoding ISO 8859-1 and the default for the standalone in testXmlwriterFilename() 84 ("testXmlwriterFilename: Error at xmlTextWriterStartDocument\n"); in testXmlwriterFilename() 93 ("testXmlwriterFilename: Error at xmlTextWriterStartElement\n"); in testXmlwriterFilename() 100 ("testXmlwriterFilename: Error at xmlTextWriterWriteComment\n"); in testXmlwriterFilename() 108 ("testXmlwriterFilename: Error at xmlTextWriterStartElement\n"); in testXmlwriterFilename() 117 ("testXmlwriterFilename: Error at xmlTextWriterWriteAttribute\n"); in testXmlwriterFilename() 126 ("testXmlwriterFilename: Error at xmlTextWriterWriteAttribute\n"); in testXmlwriterFilename() [all …]
|
| /external/rust/crates/smccc/src/psci/ |
| D | error.rs | 2 // This project is dual-licensed under Apache 2.0 and MIT terms. 3 // See LICENSE-APACHE and LICENSE-MIT for details. 5 //! PSCI error codes. 7 pub use crate::error::SUCCESS; 10 pub const NOT_SUPPORTED: i32 = -1; 11 pub const INVALID_PARAMETERS: i32 = -2; 12 pub const DENIED: i32 = -3; 13 pub const ALREADY_ON: i32 = -4; 14 pub const ON_PENDING: i32 = -5; 15 pub const INTERNAL_FAILURE: i32 = -6; [all …]
|
| /external/cronet/third_party/libxml/src/ |
| D | check-xml-test-suite.py | 16 CONF="xml-test-suite/xmlconf/xmlconf.xml" 17 LOG="check-xml-test-suite.log" 22 # Error and warning handlers 32 if len(error_msg) == 0 or error_msg[-1] == '\n': 82 return -1 92 print("%s: error: Well Formedness error not detected" % (id)) 93 log.write("%s: error: Well Formedness error not detected\n" % (id)) 107 return -1 118 print("%s: error: Well Formedness error not detected" % (id)) 119 log.write("%s: error: Well Formedness error not detected\n" % (id)) [all …]
|
| /external/libxml2/ |
| D | check-xml-test-suite.py | 16 CONF="xml-test-suite/xmlconf/xmlconf.xml" 17 LOG="check-xml-test-suite.log" 22 # Error and warning handlers 32 if len(error_msg) == 0 or error_msg[-1] == '\n': 82 return -1 92 print("%s: error: Well Formedness error not detected" % (id)) 93 log.write("%s: error: Well Formedness error not detected\n" % (id)) 107 return -1 118 print("%s: error: Well Formedness error not detected" % (id)) 119 log.write("%s: error: Well Formedness error not detected\n" % (id)) [all …]
|
| /external/rust/crates/gpio-cdev/src/ |
| D | errors.rs | 1 //! This module is deprecated and types are exported from the top-level of the crate 6 use std::error::Error as StdError; 8 use std::io::Error as IOError; 10 pub(crate) type Result<T> = std::result::Result<T, Error>; 13 pub struct Error { struct 19 Event(nix::Error), 21 Ioctl { kind: IoctlKind, cause: nix::Error }, 26 pub(crate) fn ioctl_err(kind: IoctlKind, cause: nix::Error) -> Error { in ioctl_err() argument 27 Error { in ioctl_err() 32 pub(crate) fn invalid_err(n_lines: usize, n_values: usize) -> Error { in invalid_err() argument [all …]
|
| /external/mbedtls/include/mbedtls/ |
| D | asn1write.h | 8 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 41 * \brief Write a length field in ASN.1 format. 46 * \param start The start of the buffer, for bounds-checking. 47 * \param len The length value to write. 50 * \return A negative \c MBEDTLS_ERR_ASN1_XXX error code on failure. 55 * \brief Write an ASN.1 tag in ASN.1 format. 60 * \param start The start of the buffer, for bounds-checking. 61 * \param tag The tag to write. 64 * \return A negative \c MBEDTLS_ERR_ASN1_XXX error code on failure. 72 * \brief Write raw buffer data. [all …]
|
| /external/openthread/third_party/mbedtls/repo/include/mbedtls/ |
| D | asn1write.h | 8 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 35 * \brief Write a length field in ASN.1 format. 40 * \param start The start of the buffer, for bounds-checking. 41 * \param len The length value to write. 44 * \return A negative \c MBEDTLS_ERR_ASN1_XXX error code on failure. 49 * \brief Write an ASN.1 tag in ASN.1 format. 54 * \param start The start of the buffer, for bounds-checking. 55 * \param tag The tag to write. 58 * \return A negative \c MBEDTLS_ERR_ASN1_XXX error code on failure. 64 * \brief Write raw buffer data. [all …]
|
| /external/rust/crates/rusqlite/src/ |
| D | error.rs | 4 use std::error; 14 pub enum Error { enum 15 /// An error from an underlying SQLite call. 16 SqliteFailure(ffi::Error, Option<String>), 18 /// Error reported when attempting to open a connection when SQLite was 19 /// configured to allow single-threaded use only. 22 /// Error when the value of a particular column is requested, but it cannot 24 FromSqlConversionFailure(usize, Type, Box<dyn error::Error + Send + Sync + 'static>), 26 /// Error when SQLite gives us an integral value outside the range of the 32 /// Error converting a string to UTF-8. [all …]
|
| /external/crosvm/media/libvda/src/ |
| D | error.rs | 2 // Use of this source code is governed by a BSD-style license that can be 7 use std::error; 16 pub enum Error { enum 17 // Encode session error. The error code provided is specific 25 ReadEventFailure(std::io::Error), 33 pub type Result<T> = std::result::Result<T, Error>; 35 impl error::Error for Error {} implementation 37 impl Display for Error { implementation 38 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() 39 use self::Error::*; in fmt() [all …]
|
| /external/crosvm/disk/src/qcow/ |
| D | mod.rs | 2 // Use of this source code is governed by a BSD-style license that can be 17 use std::io::Write; 22 use base::error; 40 use thiserror::Error; 56 #[derive(Error, Debug)] 57 pub enum Error { enum 58 #[error("backing file io error: {0}")] 59 BackingFileIo(io::Error), 60 #[error("backing file open error: {0}")] 61 BackingFileOpen(Box<crate::Error>), [all …]
|
| /external/rust/crates/config/src/ |
| D | error.rs | 1 use std::error::Error; 23 fn fmt(&self, f: &mut fmt::Formatter) -> result::Result<(), fmt::Error> { in fmt() argument 25 Unexpected::Bool(b) => write!(f, "boolean `{}`", b), in fmt() 26 Unexpected::I64(i) => write!(f, "integer 64 bit `{}`", i), in fmt() 27 Unexpected::I128(i) => write!(f, "integer 128 bit `{}`", i), in fmt() 28 Unexpected::U64(i) => write!(f, "unsigned integer 64 bit `{}`", i), in fmt() 29 Unexpected::U128(i) => write!(f, "unsigned integer 128 bit `{}`", i), in fmt() 30 Unexpected::Float(v) => write!(f, "floating point `{}`", v), in fmt() 31 Unexpected::Str(ref s) => write!(f, "string {:?}", s), in fmt() 32 Unexpected::Unit => write!(f, "unit value"), in fmt() [all …]
|
| /external/apache-commons-io/src/main/java/org/apache/commons/io/output/ |
| D | ProxyWriter.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 28 …* because FilterWriter changes the methods being called, such as {@code write(char[]) to write(cha… 29 * and {@code write(String) to write(String, int, int)}. 44 * Invoked by the write methods after the proxied call has returned 46 * {@link #write(int)} method, buffer length for {@link #write(char[])}, 49 * Subclasses can override this method to add common post-processing 50 * functionality without having to override all the write methods. 56 * @throws IOException if the post-processing fails 65 * @param c The character to write 67 * @throws IOException if an I/O error occurs. [all …]
|
| /external/pigweed/pw_transfer/ts/ |
| D | transfer_test.ts | 7 // https://www.apache.org/licenses/LICENSE-2.0 15 /* eslint-env browser */ 86 function enqueueServerError(method: MethodStub, error: Status): void { 93 packet.setStatus(error); 138 expect(sentChunks[sentChunks.length - 1].hasStatus()).toBe(true); 139 expect(sentChunks[sentChunks.length - 1].getStatus()).toEqual(Status.OK); 152 expect(sentChunks[sentChunks.length - 1].hasStatus()).toBe(true); 153 expect(sentChunks[sentChunks.length - 1].getStatus()).toEqual(Status.OK); 170 expect(sentChunks[sentChunks.length - 1].hasStatus()).toBe(true); 171 expect(sentChunks[sentChunks.length - 1].getStatus()).toEqual(Status.OK); [all …]
|
| /external/sdv/vsomeip/third_party/boost/asio/include/boost/asio/ |
| D | write.hpp | 2 // write.hpp 5 // Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com) 22 #include <boost/asio/error.hpp> 34 * @defgroup write boost::asio::write 36 * @brief The @c write function is a composed operation that writes a certain 41 /// Write all of the supplied data to a stream before returning. 43 * This function is used to write a certain number of bytes of data to a stream. 49 * @li An error occurred. 58 * of the buffer sizes indicates the maximum number of bytes to write to the 66 * To write a single data buffer use the @ref buffer function as follows: [all …]
|
| /external/rust/crates/protobuf/2.27.1/src/ |
| D | error.rs | 1 //! Protobuf error type 3 use std::error::Error; 27 /// String is not valid UTD-8 35 /// Other error 40 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 42 WireError::Utf8Error => write!(f, "invalid UTF-8 sequence"), in fmt() 43 WireError::UnexpectedWireType(..) => write!(f, "unexpected wire type"), in fmt() 44 WireError::InvalidEnumValue(..) => write!(f, "invalid enum value"), in fmt() 45 WireError::IncorrectTag(..) => write!(f, "incorrect tag"), in fmt() 46 WireError::IncorrectVarint => write!(f, "incorrect varint"), in fmt() [all …]
|