mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 03:58:48 +00:00
Add migration to backfill digests.
This commit is contained in:
committed by
Cody Henthorne
parent
a8bf03af89
commit
d59985c7b1
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright 2024 Signal Messenger, LLC
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package org.signal.core.util.stream
|
||||
|
||||
import java.io.OutputStream
|
||||
|
||||
/**
|
||||
* An output stream that drops all data on the floor. Basically piping to /dev/null.
|
||||
*/
|
||||
object NullOutputStream : OutputStream() {
|
||||
override fun write(b: Int) = Unit
|
||||
override fun write(b: ByteArray?) = Unit
|
||||
override fun write(b: ByteArray?, off: Int, len: Int) = Unit
|
||||
}
|
||||
Reference in New Issue
Block a user