Update comments

This commit is contained in:
Yasuhiro Hatta 2016-10-22 23:35:09 +09:00
parent 479913f0f0
commit f1ef6a7270
3 changed files with 16 additions and 3 deletions

View File

@ -175,7 +175,7 @@ extension BinaryReader {
do { do {
return try reader.readUInt8() return try reader.readUInt8()
} }
catch /*let error*/ { catch {
return nil return nil
} }
} }
@ -205,7 +205,7 @@ extension BinaryReader {
do { do {
return try reader.readUInt16() return try reader.readUInt16()
} }
catch /*let error*/ { catch {
return nil return nil
} }
} }
@ -235,7 +235,7 @@ extension BinaryReader {
do { do {
return try reader.readUInt32() return try reader.readUInt32()
} }
catch /*let error*/ { catch {
return nil return nil
} }
} }

View File

@ -9,10 +9,18 @@
// TODO: Documentation // TODO: Documentation
/// No overview available. /// No overview available.
public enum CSVError: Error { public enum CSVError: Error {
/// No overview available.
case cannotOpenFile case cannotOpenFile
/// No overview available.
case cannotReadFile case cannotReadFile
/// No overview available.
case streamErrorHasOccurred(error: Error) case streamErrorHasOccurred(error: Error)
/// No overview available.
case cannotReadHeaderRow case cannotReadHeaderRow
/// No overview available.
case stringEncodingMismatch case stringEncodingMismatch
/// No overview available.
case stringEndianMismatch case stringEndianMismatch
} }

View File

@ -9,7 +9,12 @@
// TODO: Documentation // TODO: Documentation
/// No overview available. /// No overview available.
public enum Endian { public enum Endian {
/// No overview available.
case big case big
/// No overview available.
case little case little
/// No overview available.
case unknown case unknown
} }