public static int IndexStorageSizeBytes(Reference value) { if(value == null) return new UIndex(0).StorageSizeBytes; return new UIndex(value.Index + 1).StorageSizeBytes; }