/** * 浅拷贝 **/ public Frame Duplicate() { Frame f = new Frame(payload.Capacity()); payload.MarkReaderIndex(); f.PutBytes(payload); payload.ResetReaderIndex(); if (end) { f.End(); } return(f); }
/** * 浅拷贝 **/ public Frame Duplicate() { Frame f = new Frame(payload.Capacity()); payload.MarkReaderIndex(); f.PutBytes(payload); payload.ResetReaderIndex(); if (end) { f.End(); } return(f); }