(protocolVersion, clientOptions)
| 1384 | } |
| 1385 | |
| 1386 | function newInstance(protocolVersion, clientOptions) { |
| 1387 | return new Encoder(protocolVersion || types.protocolVersion.maxSupported, clientOptions || {}); |
| 1388 | } |
| 1389 | |
| 1390 | function getType(typeCode) { |
| 1391 | return { code: typeCode }; |