Base64 { static int decodedBufferSize(int len) { return len - (len >>> 2); } private  Base64(); static ByteBuf encode(ByteBuf src); static ByteBuf encode(ByteBuf src, Base64Dialect dialect); static ByteBuf encode(ByteBuf src, boolean breakLines); static ByteBuf encode(ByteBuf src, boolean breakLines, Base64Dialect dialect); static ByteBuf encode(ByteBuf src, int off, int len); static ByteBuf encode(ByteBuf src, int off, int len, Base64Dialect dialect); static ByteBuf encode(
            ByteBuf src, int off, int len, boolean breakLines); static ByteBuf encode(
            ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect); static ByteBuf encode(
            ByteBuf src, int off, int len, boolean breakLines, Base64Dialect dialect, ByteBufAllocator allocator); static ByteBuf decode(ByteBuf src); static ByteBuf decode(ByteBuf src, Base64Dialect dialect); static ByteBuf decode(
            ByteBuf src, int off, int len); static ByteBuf decode(
            ByteBuf src, int off, int len, Base64Dialect dialect); static ByteBuf decode(
            ByteBuf src, int off, int len, Base64Dialect dialect, ByteBufAllocator allocator);  }
@Test public void testOverflowDecodedBufferSize() { assertEquals(1610612736, Base64.decodedBufferSize(Integer.MAX_VALUE)); }