diff options
author | lbsa71 | 2008-01-15 20:07:02 +0000 |
---|---|---|
committer | lbsa71 | 2008-01-15 20:07:02 +0000 |
commit | f5103b98be60cc8b1a69288328cdc20f78857835 (patch) | |
tree | b50381385478f57a05ed9fef7c5176397d76d2f2 /ThirdParty/TribalMedia/TribalMedia.Framework.Data/DataReader.cs | |
parent | * Added some comments to the linkset positioning code (diff) | |
download | opensim-SC-f5103b98be60cc8b1a69288328cdc20f78857835.zip opensim-SC-f5103b98be60cc8b1a69288328cdc20f78857835.tar.gz opensim-SC-f5103b98be60cc8b1a69288328cdc20f78857835.tar.bz2 opensim-SC-f5103b98be60cc8b1a69288328cdc20f78857835.tar.xz |
* Renamed a bunch of Data baseclasses for clarity and readability
(Slowly getting there)
Diffstat (limited to '')
-rw-r--r-- | ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseDataReader.cs (renamed from ThirdParty/TribalMedia/TribalMedia.Framework.Data/DataReader.cs) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ThirdParty/TribalMedia/TribalMedia.Framework.Data/DataReader.cs b/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseDataReader.cs index 4792e9e..34f894c 100644 --- a/ThirdParty/TribalMedia/TribalMedia.Framework.Data/DataReader.cs +++ b/ThirdParty/TribalMedia/TribalMedia.Framework.Data/BaseDataReader.cs | |||
@@ -46,19 +46,19 @@ namespace TribalMedia.Framework.Data | |||
46 | 46 | ||
47 | public ushort GetUShort(string name) | 47 | public ushort GetUShort(string name) |
48 | { | 48 | { |
49 | return (ushort) m_source.GetInt32(m_source.GetOrdinal(name)); | 49 | return (ushort)m_source.GetInt32(m_source.GetOrdinal(name)); |
50 | } | 50 | } |
51 | 51 | ||
52 | public byte GetByte(string name) | 52 | public byte GetByte(string name) |
53 | { | 53 | { |
54 | int ordinal = m_source.GetOrdinal(name); | 54 | int ordinal = m_source.GetOrdinal(name); |
55 | byte value = (byte) m_source.GetInt16(ordinal); | 55 | byte value = (byte)m_source.GetInt16(ordinal); |
56 | return value; | 56 | return value; |
57 | } | 57 | } |
58 | 58 | ||
59 | public sbyte GetSByte(string name) | 59 | public sbyte GetSByte(string name) |
60 | { | 60 | { |
61 | return (sbyte) m_source.GetInt16(m_source.GetOrdinal(name)); | 61 | return (sbyte)m_source.GetInt16(m_source.GetOrdinal(name)); |
62 | } | 62 | } |
63 | 63 | ||
64 | public float GetFloat(string name) | 64 | public float GetFloat(string name) |
@@ -84,7 +84,7 @@ namespace TribalMedia.Framework.Data | |||
84 | int bytesRead; | 84 | int bytesRead; |
85 | do | 85 | do |
86 | { | 86 | { |
87 | bytesRead = (int) m_source.GetBytes(ordinal, totalRead, buffer, 0, buffer.Length); | 87 | bytesRead = (int)m_source.GetBytes(ordinal, totalRead, buffer, 0, buffer.Length); |
88 | totalRead += bytesRead; | 88 | totalRead += bytesRead; |
89 | 89 | ||
90 | memStream.Write(buffer, 0, bytesRead); | 90 | memStream.Write(buffer, 0, bytesRead); |
@@ -103,7 +103,7 @@ namespace TribalMedia.Framework.Data | |||
103 | return null; | 103 | return null; |
104 | } | 104 | } |
105 | 105 | ||
106 | return (string) value; | 106 | return (string)value; |
107 | } | 107 | } |
108 | 108 | ||
109 | public bool Read() | 109 | public bool Read() |