mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-26 20:26:00 +08:00
20 lines
728 B
C#
20 lines
728 B
C#
|
using System.Collections.Generic;
|
||
|
using System.Diagnostics;
|
||
|
using System.IO;
|
||
|
|
||
|
namespace BililiveRecorder.Flv.Amf
|
||
|
{
|
||
|
[DebuggerDisplay("AmfNull")]
|
||
|
public class ScriptDataNull : IScriptDataValue
|
||
|
{
|
||
|
public ScriptDataType Type => ScriptDataType.Null;
|
||
|
|
||
|
public void WriteTo(Stream stream) => stream.WriteByte((byte)this.Type);
|
||
|
|
||
|
public override bool Equals(object? obj) => obj is ScriptDataNull;
|
||
|
public override int GetHashCode() => 0;
|
||
|
public static bool operator ==(ScriptDataNull left, ScriptDataNull right) => EqualityComparer<ScriptDataNull>.Default.Equals(left, right);
|
||
|
public static bool operator !=(ScriptDataNull left, ScriptDataNull right) => !(left == right);
|
||
|
}
|
||
|
}
|