Example #1
0
 public override void WriteJson(JsonWriter writer, byte[] value, Newtonsoft.Json.JsonSerializer serializer)
 {
     if (value == null)
     {
         writer.WriteNull();
     }
     else
     {
         writer.WriteValue(Bytes.ByteArrayToHexViaLookup32Safe(value, true));
     }
 }
Example #2
0
 public override void WriteJson(JsonWriter writer, Keccak value, JsonSerializer serializer)
 {
     if (value == null)
     {
         writer.WriteNull();
     }
     else
     {
         writer.WriteValue(Bytes.ByteArrayToHexViaLookup32Safe(value.Bytes, true));
     }
 }
Example #3
0
 public override void WriteJson(JsonWriter writer, byte[] value, JsonSerializer serializer)
 {
     writer.WriteValue(Bytes.ByteArrayToHexViaLookup32Safe(value, true));
 }
Example #4
0
 public string SafeLookup()
 {
     return(Bytes.ByteArrayToHexViaLookup32Safe(array, false));
 }
Example #5
0
 public override void Write(Utf8JsonWriter writer, Address value, JsonSerializerOptions options) => writer.WriteStringValue(Bytes.ByteArrayToHexViaLookup32Safe(value.Bytes, true));
Example #6
0
 public string Improved()
 {
     return(Bytes.ByteArrayToHexViaLookup32Safe(array, true));
 }
Example #7
0
 public override void WriteJson(JsonWriter writer, Bloom value, Newtonsoft.Json.JsonSerializer serializer)
 {
     writer.WriteValue(Bytes.ByteArrayToHexViaLookup32Safe(value.Bytes, true));
 }