Skip to content

Commit b2be7b5

Browse files
author
dutcher
committed
Added no op functions to conform to protocol
1 parent de20c9c commit b2be7b5

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

JSONSerializerSwift/JSONReader.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,14 @@ public class JSONReader : Reader {
124124
return ""
125125
}
126126

127+
public func pushLimit(limit: Int) -> Int {
128+
return 0 // NO OP
129+
}
130+
131+
public func popLimit(limit: Int) {
132+
// NO OP
133+
}
134+
127135
public func pushTagMap(map: [String:(Int, Bool)]) {
128136
if nil != self.tagMap {
129137
tagMapStack.append(self.tagMap)

JSONSerializerSwift/Reader.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ public protocol Reader {
1414
func readUInt32() -> UInt32
1515
func readUInt64() -> UInt64
1616
func readString() -> String
17+
func pushLimit(limit: Int) -> Int
18+
func popLimit(limit: Int)
1719
func pushTagMap(map: [String:(Int, Bool)])
1820
func popTagMap()
19-
}
21+
}

0 commit comments

Comments
 (0)