Add consumer side of FoundationDB codec