Amazon.CognitoSync.SyncManager.Internal.DatasetUtils.ComputeRecordSize C# (CSharp) Метод

ComputeRecordSize() публичный статический Метод

A helper function to compute record size which equals the sum of the UTF-8 string length of record key and value. 0 if record is null.
public static ComputeRecordSize ( Record record ) : long
record Record Record.
Результат long
        public static long ComputeRecordSize(Record record)
        {
            if (record == null)
            {
                return 0;
            }
            return Encoding.UTF8.GetByteCount(record.Key)
                + Encoding.UTF8.GetByteCount(record.Value);
        }