Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ZLogger/Internal/MagicalBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ T Read<T>(int offset)
return ReaderCache.ReadBoxed(type, this, offset);
}

public bool TryReadTo(Type type, int offset, int alignment, string? format, ref Utf8StringWriter<IBufferWriter<byte>> handler)
public bool TryReadTo(Type? type, int offset, int alignment, string? format, ref Utf8StringWriter<IBufferWriter<byte>> handler)
{
if (offset < 0) return false;
if (type == null) return false;
if (type.IsEnum) goto USE_READER;

var code = Type.GetTypeCode(type);
Expand Down