Skip to content

Instantly share code, notes, and snippets.

@Varriount
Created April 28, 2018 23:53
Show Gist options
  • Save Varriount/3fd164ffa45e3b75616c59aa3bc5c482 to your computer and use it in GitHub Desktop.
Save Varriount/3fd164ffa45e3b75616c59aa3bc5c482 to your computer and use it in GitHub Desktop.
proc readElementInto(
dest: var DescribeAvailabilityZonesResult,
parser: var XmlParser,
elementName: string): int =
result = 0
if parser.elementName != elementName:
return 0
var readCount = 0
while readCount < 1:
let increment = (
readElementInto(dest.availabilityZones, parser)
)
inc(readCount, increment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment