// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.data.cosmos.serialization.hybridrow; public interface ISpanResizer { /** * Resizes an existing a buffer. * The type of the elements of the memory. * * @param minimumLength The minimum required length (in elements) of the memory. * @param buffer Optional existing memory to be copied to the new buffer. Ownership of is * transferred as part of this call and it should not be used by the caller after this call * completes. * @return A new memory whose size is at least as big as * and containing the content of . */ Span Resize(int minimumLength); //C# TO JAVA CONVERTER NOTE: Java does not support optional parameters. Overloaded method(s) are created above: //ORIGINAL LINE: Span Resize(int minimumLength, Span buffer = default); Span Resize(int minimumLength, Span buffer); }