@@ -33,6 +33,9 @@ class BufferDataSink : public DataSinkBase {
3333 explicit BufferDataSink (::executorch::runtime::Span<uint8_t > buffer)
3434 : debug_buffer_(buffer), offset_(0 ) {}
3535
36+ BufferDataSink (const BufferDataSink&) = delete ;
37+ BufferDataSink& operator =(const BufferDataSink&) = delete ;
38+
3639 /* *
3740 * Write data into the debug buffer and return the offset of the starting
3841 * location of the data within the buffer.
@@ -45,7 +48,8 @@ class BufferDataSink : public DataSinkBase {
4548 * - An error code indicating the failure reason, if any issue
4649 * occurs during the write process.
4750 */
48- Result<size_t > write (const void * ptr, size_t length) override ;
51+ ::executorch::runtime::Result<size_t > write (const void * ptr, size_t length)
52+ override ;
4953
5054 /* *
5155 * Write tensor into the debug buffer and return the offset of the starting
@@ -57,14 +61,15 @@ class BufferDataSink : public DataSinkBase {
5761 * - An error code indicating the failure reason, if any issue
5862 * occurs during the write process.
5963 */
60- Result<size_t > write_tensor (const executorch::aten::Tensor& tensor);
64+ ::executorch::runtime::Result<size_t > write_tensor (
65+ const executorch::aten::Tensor& tensor);
6166
6267 /* *
6368 * Retrieves the total size of the buffer.
6469 *
6570 * @return A Result object containing the total size of the buffer in bytes.
6671 */
67- Result<size_t > get_storage_size () const override ;
72+ ::executorch::runtime:: Result<size_t > get_storage_size () const override ;
6873
6974 /* *
7075 * Retrieves the number of bytes currently used in the buffer.
0 commit comments