Sproto.SprotoStream.this C# (CSharp) 메소드

this() 공개 메소드

public this ( int i ) : byte
i int
리턴 byte
		public byte this[int i] {
			get {
				if (i < 0 || i >= this.size) {
					throw new Exception ("invalid idx:" + i + "@get");
				}
				return this.buffer [i];
			}

			set {
				if (i < 0 || i >= this.size) {
					throw new Exception ("invalid idx:" + i + "@set");
				}
				this.buffer [i] = value;
			}
		}
	}