MCPcopy Create free account
hub / github.com/apache/fory / ToInt64

Method ToInt64

csharp/src/Fory/CompatibleScalarConverter.cs:551–559  ·  view source on GitHub ↗
(ulong value, TypeId remote, TypeId local, string fieldName)

Source from the content-addressed store, hash-verified

549 }
550
551 private static long ToInt64(ulong value, TypeId remote, TypeId local, string fieldName)
552 {
553 if (value <= long.MaxValue)
554 {
555 return (long)value;
556 }
557
558 throw Fail(remote, local, fieldName, $"integer value {value} is outside {local} range");
559 }
560
561 private static ScalarValue ReadScalarPayload(
562 ReadContext context,

Callers 1

GetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected