diff --git a/types/ip/ip-tests.ts b/types/ip/ip-tests.ts index 13abf1f4a6..f1fbf4726d 100644 --- a/types/ip/ip-tests.ts +++ b/types/ip/ip-tests.ts @@ -20,3 +20,7 @@ ip.toString(buff); ip.subnet('192.168.1.134', '255.255.255.192'); ip.cidrSubnet('192.168.1.134/26'); ip.cidrSubnet('192.168.1.134/26').contains('192.168.1.134'); +var buf = new Buffer(128); +var offset = 64; +ip.toBuffer('127.0.0.1', buf, offset); +ip.toString(buf, offset, 4);