yijunyu/c-to-rust huggingface dataset:
// Original:
public StartCelebrityRecognitionResult startCelebrityRecognition(StartCelebrityRecognitionRequest request) {request = beforeClientExecution(request);return executeStartCelebrityRecognition(request);}

// Translation:
public virtual StartCelebrityRecognitionResponse StartCelebrityRecognition(StartCelebrityRecognitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartCelebrityRecognitionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartCelebrityRecognitionResponseUnmarshaller.Instance;return Invoke<StartCelebrityRecognitionResponse>(request, options);}
// Original:
public synchronized void write(byte[] buffer, int offset, int length) throws IOException {checkNotClosed();if (buffer == null) {throw new NullPointerException("buffer == null");}byte[] internalBuffer = buf;if (length >= internalBuffer.length) {flushInternal();out.write(buffer, offset, length);return;}Arrays.checkOffsetAndCount(buffer.length, offset, length);if (length > (internalBuffer.length - count)) {flushInternal();}System.arraycopy(buffer, offset, internalBuffer, count, length);count += length;}

// Translation:
public override void write(byte[] buffer, int offset, int length){lock (this){checkNotClosed();if (buffer == null){throw new System.ArgumentNullException("buffer == null");}byte[] internalBuffer = buf;if (length >= internalBuffer.Length){flushInternal();@out.write(buffer, offset, length);return;}java.util.Arrays.checkOffsetAndCount(buffer.Length, offset, length);if (length > (internalBuffer.Length - count)){flushInternal();}System.Array.Copy(buffer, offset, internalBuffer, count, length);count += length;}}
// Original:
public int readRecordSID() {return _lei.readUShort();}

// Translation:
public int ReadRecordSID(){return _lei.ReadUShort();}
// Original:
public ListProfileTimesResult listProfileTimes(ListProfileTimesRequest request) {request = beforeClientExecution(request);return executeListProfileTimes(request);}

// Translation:
public virtual ListProfileTimesResponse ListProfileTimes(ListProfileTimesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProfileTimesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProfileTimesResponseUnmarshaller.Instance;return Invoke<ListProfileTimesResponse>(request, options);}
// Original:
public RevFilter clone() {final RevFilter[] s = new RevFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);}

// Translation:
public override TreeFilter Clone(){TreeFilter[] s = new TreeFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new OrTreeFilter.List(s);}
// Original:
public Cluster modifyCluster(ModifyClusterRequest request) {request = beforeClientExecution(request);return executeModifyCluster(request);}

// Translation:
public virtual ModifyClusterResponse ModifyCluster(ModifyClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterResponseUnmarshaller.Instance;return Invoke<ModifyClusterResponse>(request, options);}
// Original:
public GetRouteResponsesResult getRouteResponses(GetRouteResponsesRequest request) {request = beforeClientExecution(request);return executeGetRouteResponses(request);}

// Translation:
public virtual GetRouteResponsesResponse GetRouteResponses(GetRouteResponsesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRouteResponsesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRouteResponsesResponseUnmarshaller.Instance;return Invoke<GetRouteResponsesResponse>(request, options);}
// Original:
synchronized public QueryMaker getQueryMaker(ReadTask readTask) {Class<? extends ReadTask> readTaskClass = readTask.getClass();QueryMaker qm = readTaskQueryMaker.get(readTaskClass);if (qm == null) {try {qm = qmkrClass.getConstructor().newInstance();qm.setConfig(config);} catch (Exception e) {throw new RuntimeException(e);}readTaskQueryMaker.put(readTaskClass,qm);}return qm;}

// Translation:
public virtual IQueryMaker GetQueryMaker(ReadTask readTask){lock (this){Type readTaskClass = readTask.GetType();IQueryMaker qm;if (!readTaskQueryMaker.TryGetValue(readTaskClass, out qm) || qm == null){try{qm = (IQueryMaker)Activator.CreateInstance(qmkrClass);qm.SetConfig(config);}catch (Exception e){throw new Exception(e.ToString(), e);}readTaskQueryMaker[readTaskClass] = qm;}return qm;}}
// Original:
public boolean promptYesNo(String msg) {CredentialItem.YesNoType v = new CredentialItem.YesNoType(msg);return provider.get(uri, v) && v.getValue();}

// Translation:
public virtual bool PromptYesNo(string msg){CredentialItem.YesNoType v = new CredentialItem.YesNoType(msg);return provider.Get(uri, v) && v.GetValue();}
// Original:
public String utf8ToString() {final char[] ref = new char[length];final int len = UnicodeUtil.UTF8toUTF16(bytes, offset, length, ref);return new String(ref, 0, len);}

// Translation:
public string Utf8ToString(){CharsRef @ref = new CharsRef(Length);UnicodeUtil.UTF8toUTF16(bytes, Offset, Length, @ref);return @ref.ToString();}
// Original:
public ListCandidatesForAutoMLJobResult listCandidatesForAutoMLJob(ListCandidatesForAutoMLJobRequest request) {request = beforeClientExecution(request);return executeListCandidatesForAutoMLJob(request);}

// Translation:
public virtual ListCandidatesForAutoMLJobResponse ListCandidatesForAutoMLJob(ListCandidatesForAutoMLJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCandidatesForAutoMLJobRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCandidatesForAutoMLJobResponseUnmarshaller.Instance;return Invoke<ListCandidatesForAutoMLJobResponse>(request, options);}
// Original:
public String toFormulaString(FormulaRenderingWorkbook book) {return book.resolveNameXText(this);}

// Translation:
public String ToFormulaString(IFormulaRenderingWorkbook book){return book.ResolveNameXText(this);}
// Original:
public UpdateSkillGroupResult updateSkillGroup(UpdateSkillGroupRequest request) {request = beforeClientExecution(request);return executeUpdateSkillGroup(request);}

// Translation:
public virtual UpdateSkillGroupResponse UpdateSkillGroup(UpdateSkillGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSkillGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSkillGroupResponseUnmarshaller.Instance;return Invoke<UpdateSkillGroupResponse>(request, options);}
// Original:
public String getValue() {return RawParseUtils.decode(enc, buffer, valStart, valEnd);}

// Translation:
public string GetValue(){return RawParseUtils.Decode(enc, buffer, valStart, valEnd);}
// Original:
public ListAssociatedFleetsResult listAssociatedFleets(ListAssociatedFleetsRequest request) {request = beforeClientExecution(request);return executeListAssociatedFleets(request);}

// Translation:
public virtual ListAssociatedFleetsResponse ListAssociatedFleets(ListAssociatedFleetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAssociatedFleetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAssociatedFleetsResponseUnmarshaller.Instance;return Invoke<ListAssociatedFleetsResponse>(request, options);}
// Original:
public void removeLastChild() {if ( children!=null ) {children.remove(children.size()-1);}}

// Translation:
public virtual void RemoveLastChild(){if (children != null){children.RemoveAt(children.Count - 1);}}
// Original:
public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long byte0 = blocks[blocksOffset++] & 0xFF;final long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 6) | (byte1 >>> 2);final long byte2 = blocks[blocksOffset++] & 0xFF;final long byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 3) << 12) | (byte2 << 4) | (byte3 >>> 4);final long byte4 = blocks[blocksOffset++] & 0xFF;final long byte5 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 15) << 10) | (byte4 << 2) | (byte5 >>> 6);final long byte6 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte5 & 63) << 8) | byte6;}}

// Translation:
public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){int byte0 = blocks[blocksOffset++] & 0xFF;int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 6) | ((int)((uint)byte1 >> 2));int byte2 = blocks[blocksOffset++] & 0xFF;int byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 3) << 12) | (byte2 << 4) | ((int)((uint)byte3 >> 4));int byte4 = blocks[blocksOffset++] & 0xFF;int byte5 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 15) << 10) | (byte4 << 2) | ((int)((uint)byte5 >> 6));int byte6 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte5 & 63) << 8) | byte6;}}
// Original:
public String describeParams() {StringBuilder sb = new StringBuilder();sb.append("\t").append("maxQueryTerms  : ").append(maxQueryTerms).append("\n");sb.append("\t").append("minWordLen     : ").append(minWordLen).append("\n");sb.append("\t").append("maxWordLen     : ").append(maxWordLen).append("\n");sb.append("\t").append("fieldNames     : ");String delim = "";for (String fieldName : fieldNames) {sb.append(delim).append(fieldName);delim = ", ";}sb.append("\n");sb.append("\t").append("boost          : ").append(boost).append("\n");sb.append("\t").append("minTermFreq    : ").append(minTermFreq).append("\n");sb.append("\t").append("minDocFreq     : ").append(minDocFreq).append("\n");return sb.toString();}

// Translation:
public string DescribeParams(){StringBuilder sb = new StringBuilder();sb.Append("\t").Append("maxQueryTerms  : ").Append(MaxQueryTerms).Append("\n");sb.Append("\t").Append("minWordLen     : ").Append(MinWordLen).Append("\n");sb.Append("\t").Append("maxWordLen     : ").Append(MaxWordLen).Append("\n");sb.Append("\t").Append("fieldNames     : ");string delim = "";foreach (string fieldName in FieldNames){sb.Append(delim).Append(fieldName);delim = ", ";}sb.Append("\n");sb.Append("\t").Append("boost          : ").Append(ApplyBoost).Append("\n");sb.Append("\t").Append("minTermFreq    : ").Append(MinTermFreq).Append("\n");sb.Append("\t").Append("minDocFreq     : ").Append(MinDocFreq).Append("\n");return sb.ToString();}
// Original:
public RunScheduledInstancesResult runScheduledInstances(RunScheduledInstancesRequest request) {request = beforeClientExecution(request);return executeRunScheduledInstances(request);}

// Translation:
public virtual RunScheduledInstancesResponse RunScheduledInstances(RunScheduledInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RunScheduledInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = RunScheduledInstancesResponseUnmarshaller.Instance;return Invoke<RunScheduledInstancesResponse>(request, options);}
// Original:
public static boolean isValidExcelDate(double value){return (value > -Double.MIN_VALUE);}

// Translation:
public static bool IsValidExcelDate(double value){return value > -Double.Epsilon;}
// Original:
public CreateBranchCommand setForce(boolean force) {checkCallable();this.force = force;return this;}

// Translation:
public virtual NGit.Api.CreateBranchCommand SetForce(bool force){CheckCallable();this.force = force;return this;}
// Original:
public AbstractEscherHolderRecord(RecordInputStream in) {if (! DESERIALISE ) {rawDataContainer.concatenate(in.readRemainder());} else {byte[] data = in.readAllContinuedRemainder();convertToEscherRecords( 0, data.length, data );}}

// Translation:
public AbstractEscherHolderRecord(RecordInputStream in1){escherRecords = new List<EscherRecord>();if (!DESERIALISE){rawDataContainer.Concatenate(in1.ReadRemainder());}else{byte[] data = in1.ReadAllContinuedRemainder();ConvertToEscherRecords(0, data.Length, data);}}
// Original:
public int next(int n) {currentSentence += n;if (n < 0) {if (text.getIndex() == text.getEndIndex()) {++currentSentence;}if (currentSentence < 0) {currentSentence = 0;text.setIndex(text.getBeginIndex());return DONE;} else {text.setIndex(sentenceStarts[currentSentence]);}} else if (n > 0) {if (currentSentence >= sentenceStarts.length) {currentSentence = sentenceStarts.length - 1;text.setIndex(text.getEndIndex());return DONE;} else {text.setIndex(sentenceStarts[currentSentence]);}}return current();}

// Translation:
public override int Next(int n){currentSentence += n;if (n < 0){if (text.Index == text.EndIndex){++currentSentence;}if (currentSentence < 0){currentSentence = 0;text.SetIndex(text.BeginIndex);return Done;}else{text.SetIndex(sentenceStarts[currentSentence]);}}else if (n > 0){if (currentSentence >= sentenceStarts.Length){currentSentence = sentenceStarts.Length - 1;text.SetIndex(text.EndIndex);return Done;}else{text.SetIndex(sentenceStarts[currentSentence]);}}return Current;}
// Original:
public boolean equals(Object obj) {if (this == obj) return true;if (obj == null) return false;if (getClass() != obj.getClass()) return false;RunAutomaton other = (RunAutomaton) obj;if (alphabetSize != other.alphabetSize) return false;if (size != other.size) return false;if (!Arrays.equals(points, other.points)) return false;if (!accept.equals(other.accept)) return false;if (!Arrays.equals(transitions, other.transitions)) return false;return true;}

// Translation:
public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (this.GetType() != obj.GetType()){return false;}RunAutomaton other = (RunAutomaton)obj;if (m_initial != other.m_initial){return false;}if (_maxInterval != other._maxInterval){return false;}if (_size != other._size){return false;}if (!Arrays.Equals(_points, other._points)){return false;}if (!Arrays.Equals(m_accept, other.m_accept)){return false;}if (!Arrays.Equals(m_transitions, other.m_transitions)){return false;}return true;}
// Original:
public void setOffset(long offset) {this.offset = offset;}

// Translation:
public virtual void SetOffset(long offset){this.offset = offset;}
// Original:
public DescribeKeyPairsResult describeKeyPairs() {return describeKeyPairs(new DescribeKeyPairsRequest());}

// Translation:
public virtual DescribeKeyPairsResponse DescribeKeyPairs(){return DescribeKeyPairs(new DescribeKeyPairsRequest());}
// Original:
public ParseTree get(String label) {List<ParseTree> parseTrees = labels.get(label);if ( parseTrees==null || parseTrees.size()==0 ) {return null;}return parseTrees.get( parseTrees.size()-1 ); }

// Translation:
public virtual IParseTree Get(string label){IList<IParseTree> parseTrees = labels.Get(label);if (parseTrees == null || parseTrees.Count == 0){return null;}return parseTrees[parseTrees.Count - 1];}
// Original:
public ListRecordsResult listRecords(ListRecordsRequest request) {request = beforeClientExecution(request);return executeListRecords(request);}

// Translation:
public virtual ListRecordsResponse ListRecords(ListRecordsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRecordsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRecordsResponseUnmarshaller.Instance;return Invoke<ListRecordsResponse>(request, options);}
// Original:
public DetectStackResourceDriftResult detectStackResourceDrift(DetectStackResourceDriftRequest request) {request = beforeClientExecution(request);return executeDetectStackResourceDrift(request);}

// Translation:
public virtual DetectStackResourceDriftResponse DetectStackResourceDrift(DetectStackResourceDriftRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectStackResourceDriftRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectStackResourceDriftResponseUnmarshaller.Instance;return Invoke<DetectStackResourceDriftResponse>(request, options);}
// Original:
public String encodeText(String originalText){return htmlEncode(originalText);}

// Translation:
public string EncodeText(string originalText){return HtmlEncode(originalText);}
// Original:
public Collection<ParseTree> evaluate(ParseTree t) {if ( invert ) return new ArrayList<ParseTree>(); return Trees.getDescendants(t);}

// Translation:
public override ICollection<IParseTree> Evaluate(IParseTree t){if (invert){return new List<IParseTree>();}return Trees.Descendants(t);}
// Original:
public DeleteUsagePlanKeyResult deleteUsagePlanKey(DeleteUsagePlanKeyRequest request) {request = beforeClientExecution(request);return executeDeleteUsagePlanKey(request);}

// Translation:
public virtual DeleteUsagePlanKeyResponse DeleteUsagePlanKey(DeleteUsagePlanKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUsagePlanKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUsagePlanKeyResponseUnmarshaller.Instance;return Invoke<DeleteUsagePlanKeyResponse>(request, options);}
// Original:
public String getLocalName() {return localName;}

// Translation:
public virtual string GetLocalName(){return localName;}
// Original:
public DeleteDocumentResult deleteDocument(DeleteDocumentRequest request) {request = beforeClientExecution(request);return executeDeleteDocument(request);}

// Translation:
public virtual DeleteDocumentResponse DeleteDocument(DeleteDocumentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDocumentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDocumentResponseUnmarshaller.Instance;return Invoke<DeleteDocumentResponse>(request, options);}
// Original:
public int getExternalSheetIndex(String sheetName) {int sheetIndex = _uBook.getSheetIndex(sheetName);return _iBook.checkExternSheet(sheetIndex);}

// Translation:
public int GetExternalSheetIndex(String sheetName){int sheetIndex = _uBook.GetSheetIndex(sheetName);return _iBook.CheckExternSheet(sheetIndex);}
// Original:
public IdentityEncoder(Charset charset) {this.charset = charset;}

// Translation:
public IdentityEncoder(Encoding charset){this.m_charset = charset;}
// Original:
public static SupBookRecord createInternalReferences(short numberOfSheets) {return new SupBookRecord(false, numberOfSheets);}

// Translation:
public static SupBookRecord CreateInternalReferences(short numberOfSheets){return new SupBookRecord(false, numberOfSheets);}
// Original:
public DBInstance createDBInstanceReadReplica(CreateDBInstanceReadReplicaRequest request) {request = beforeClientExecution(request);return executeCreateDBInstanceReadReplica(request);}

// Translation:
public virtual CreateDBInstanceReadReplicaResponse CreateDBInstanceReadReplica(CreateDBInstanceReadReplicaRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBInstanceReadReplicaRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBInstanceReadReplicaResponseUnmarshaller.Instance;return Invoke<CreateDBInstanceReadReplicaResponse>(request, options);}
// Original:
public DescribePartnerEventSourceResult describePartnerEventSource(DescribePartnerEventSourceRequest request) {request = beforeClientExecution(request);return executeDescribePartnerEventSource(request);}

// Translation:
public virtual DescribePartnerEventSourceResponse DescribePartnerEventSource(DescribePartnerEventSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePartnerEventSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePartnerEventSourceResponseUnmarshaller.Instance;return Invoke<DescribePartnerEventSourceResponse>(request, options);}
// Original:
public EnterStandbyResult enterStandby(EnterStandbyRequest request) {request = beforeClientExecution(request);return executeEnterStandby(request);}

// Translation:
public virtual EnterStandbyResponse EnterStandby(EnterStandbyRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnterStandbyRequestMarshaller.Instance;options.ResponseUnmarshaller = EnterStandbyResponseUnmarshaller.Instance;return Invoke<EnterStandbyResponse>(request, options);}
// Original:
public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[24];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 10; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<<j)) != 0) {la1tokens[j] = true;}}}}for (int i = 0; i < 24; i++) {if (la1tokens[i]) {jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.add(jj_expentry);}}jj_endpos = 0;jj_rescan_token();jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.size()][];for (int i = 0; i < jj_expentries.size(); i++) {exptokseq[i] = jj_expentries.get(i);}return new ParseException(token, exptokseq, tokenImage);}

// Translation:
public virtual ParseException GenerateParseException(){jj_expentries.Clear();bool[] la1tokens = new bool[33];if (jj_kind >= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 21; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}if ((jj_la1_1[i] & (1 << j)) != 0){la1tokens[32 + j] = true;}}}}for (int i = 0; i < 33; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, QueryParserConstants.TokenImage);}
// Original:
public CreateCloudFrontOriginAccessIdentityRequest(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig) {setCloudFrontOriginAccessIdentityConfig(cloudFrontOriginAccessIdentityConfig);}

// Translation:
public CreateCloudFrontOriginAccessIdentityRequest(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig){_cloudFrontOriginAccessIdentityConfig = cloudFrontOriginAccessIdentityConfig;}
// Original:
public ResetFpgaImageAttributeResult resetFpgaImageAttribute(ResetFpgaImageAttributeRequest request) {request = beforeClientExecution(request);return executeResetFpgaImageAttribute(request);}

// Translation:
public virtual ResetFpgaImageAttributeResponse ResetFpgaImageAttribute(ResetFpgaImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetFpgaImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetFpgaImageAttributeResponseUnmarshaller.Instance;return Invoke<ResetFpgaImageAttributeResponse>(request, options);}
// Original:
public void serialize(ContinuableRecordOutput out) {out.writeInt(_numStrings);out.writeInt(_numUniqueStrings);for ( int k = 0; k < strings.size(); k++ ){if (k % ExtSSTRecord.DEFAULT_BUCKET_SIZE == 0){int rOff = out.getTotalSize();int index = k/ExtSSTRecord.DEFAULT_BUCKET_SIZE;if (index < ExtSSTRecord.MAX_BUCKETS) {bucketAbsoluteOffsets[index] = rOff;bucketRelativeOffsets[index] = rOff;}}UnicodeString s = getUnicodeString(k);s.serialize(out);}}

// Translation:
public void Serialize(ContinuableRecordOutput out1){out1.WriteInt(_numStrings);out1.WriteInt(_numUniqueStrings);for (int k = 0; k < strings.Size; k++){if (k % ExtSSTRecord.DEFAULT_BUCKET_SIZE == 0){int rOff = out1.TotalSize;int index = k / ExtSSTRecord.DEFAULT_BUCKET_SIZE;if (index < ExtSSTRecord.MAX_BUCKETS){bucketAbsoluteOffsets[index] = rOff;bucketRelativeOffsets[index] = rOff;}}UnicodeString s = GetUnicodeString(k);s.Serialize(out1);}}
// Original:
public DeleteGroupMembershipResult deleteGroupMembership(DeleteGroupMembershipRequest request) {request = beforeClientExecution(request);return executeDeleteGroupMembership(request);}

// Translation:
public virtual DeleteGroupMembershipResponse DeleteGroupMembership(DeleteGroupMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGroupMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGroupMembershipResponseUnmarshaller.Instance;return Invoke<DeleteGroupMembershipResponse>(request, options);}