aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/IO/FileInfo.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-11-29 13:15:09 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-11-29 13:15:09 +0200
commit9e6d1ddfb42c4e8357bd75c2b1d6f84df1ea1966 (patch)
tree131c98a3b19bfca2ce81259f8921c409fda7bee7 /Software/Visual_Studio/Tango.PMR/IO/FileInfo.cs
parentac3c227bb5d12339fee6fb4c243f3a5f67217915 (diff)
downloadTango-9e6d1ddfb42c4e8357bd75c2b1d6f84df1ea1966.tar.gz
Tango-9e6d1ddfb42c4e8357bd75c2b1d6f84df1ea1966.zip
Working on machine studio storage module.
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/IO/FileInfo.cs')
-rw-r--r--Software/Visual_Studio/Tango.PMR/IO/FileInfo.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/IO/FileInfo.cs b/Software/Visual_Studio/Tango.PMR/IO/FileInfo.cs
index d6c1b7fbd..4728be2c1 100644
--- a/Software/Visual_Studio/Tango.PMR/IO/FileInfo.cs
+++ b/Software/Visual_Studio/Tango.PMR/IO/FileInfo.cs
@@ -24,7 +24,7 @@ namespace Tango.PMR.IO {
string.Concat(
"Cg5GaWxlSW5mby5wcm90bxIMVGFuZ28uUE1SLklPGhNGaWxlQXR0cmlidXRl",
"LnByb3RvIp4BCghGaWxlSW5mbxIMCgROYW1lGAEgASgJEhAKCEZ1bGxQYXRo",
- "GAIgASgJEg4KBkxlbmd0aBgDIAEoBRIYChBMYXN0TW9kaWZpZWREYXRlGAQg",
+ "GAIgASgJEg4KBkxlbmd0aBgDIAEoAxIYChBMYXN0TW9kaWZpZWREYXRlGAQg",
"ASgFEhgKEExhc3RNb2RpZmllZFRpbWUYBSABKAUSLgoJQXR0cmlidXRlGAYg",
"ASgOMhsuVGFuZ28uUE1SLklPLkZpbGVBdHRyaWJ1dGVCGAoWY29tLnR3aW5l",
"LnRhbmdvLnBtci5pb2IGcHJvdG8z"));
@@ -99,9 +99,9 @@ namespace Tango.PMR.IO {
/// <summary>Field number for the "Length" field.</summary>
public const int LengthFieldNumber = 3;
- private int length_;
+ private long length_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- public int Length {
+ public long Length {
get { return length_; }
set {
length_ = value;
@@ -168,7 +168,7 @@ namespace Tango.PMR.IO {
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (FullPath.Length != 0) hash ^= FullPath.GetHashCode();
- if (Length != 0) hash ^= Length.GetHashCode();
+ if (Length != 0L) hash ^= Length.GetHashCode();
if (LastModifiedDate != 0) hash ^= LastModifiedDate.GetHashCode();
if (LastModifiedTime != 0) hash ^= LastModifiedTime.GetHashCode();
if (Attribute != 0) hash ^= Attribute.GetHashCode();
@@ -190,9 +190,9 @@ namespace Tango.PMR.IO {
output.WriteRawTag(18);
output.WriteString(FullPath);
}
- if (Length != 0) {
+ if (Length != 0L) {
output.WriteRawTag(24);
- output.WriteInt32(Length);
+ output.WriteInt64(Length);
}
if (LastModifiedDate != 0) {
output.WriteRawTag(32);
@@ -217,8 +217,8 @@ namespace Tango.PMR.IO {
if (FullPath.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(FullPath);
}
- if (Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Length);
+ if (Length != 0L) {
+ size += 1 + pb::CodedOutputStream.ComputeInt64Size(Length);
}
if (LastModifiedDate != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(LastModifiedDate);
@@ -243,7 +243,7 @@ namespace Tango.PMR.IO {
if (other.FullPath.Length != 0) {
FullPath = other.FullPath;
}
- if (other.Length != 0) {
+ if (other.Length != 0L) {
Length = other.Length;
}
if (other.LastModifiedDate != 0) {
@@ -274,7 +274,7 @@ namespace Tango.PMR.IO {
break;
}
case 24: {
- Length = input.ReadInt32();
+ Length = input.ReadInt64();
break;
}
case 32: {