forked from enlightenment/efl
csharp: removing extra //
Summary: dotnet warning about extras / Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8293 Differential Revision: https://phab.enlightenment.org/D10282
This commit is contained in:
parent
62a61c3c7c
commit
78cd5df179
|
@ -107,7 +107,7 @@ public class Array<T> : IEnumerable<T>, IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a new array.
|
/// Create a new array.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="step">Step size of the array.</param>
|
/// <param name="step">Step size of the array.</param>
|
||||||
public Array(uint step)
|
public Array(uint step)
|
||||||
{
|
{
|
||||||
InitNew(step);
|
InitNew(step);
|
||||||
|
@ -116,8 +116,8 @@ public class Array<T> : IEnumerable<T>, IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a new array.
|
/// Create a new array.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="handle">The native handle to be wrapped.</param>
|
/// <param name="handle">The native handle to be wrapped.</param>
|
||||||
///// <param name="own">Whether this wrapper owns the native handle.</param>
|
/// <param name="own">Whether this wrapper owns the native handle.</param>
|
||||||
public Array(IntPtr handle, bool own)
|
public Array(IntPtr handle, bool own)
|
||||||
{
|
{
|
||||||
if (handle == IntPtr.Zero)
|
if (handle == IntPtr.Zero)
|
||||||
|
@ -133,9 +133,9 @@ public class Array<T> : IEnumerable<T>, IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a new array
|
/// Create a new array
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="handle">The native array to be wrapped.</param>
|
/// <param name="handle">The native array to be wrapped.</param>
|
||||||
///// <param name="own">Whether this wrapper owns the native array.</param>
|
/// <param name="own">Whether this wrapper owns the native array.</param>
|
||||||
///// <param name="ownContent">For compatibility with other EFL# containers.</param>
|
/// <param name="ownContent">For compatibility with other EFL# containers.</param>
|
||||||
public Array(IntPtr handle, bool own, bool ownContent)
|
public Array(IntPtr handle, bool own, bool ownContent)
|
||||||
{
|
{
|
||||||
if (handle == IntPtr.Zero)
|
if (handle == IntPtr.Zero)
|
||||||
|
@ -267,7 +267,7 @@ public class Array<T> : IEnumerable<T>, IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Inserts the element of the array at the end.
|
/// Inserts the element of the array at the end.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="val">The value of the element to be inserted.</param>
|
/// <param name="val">The value of the element to be inserted.</param>
|
||||||
public bool Push(T val)
|
public bool Push(T val)
|
||||||
{
|
{
|
||||||
IntPtr ele = ManagedToNativeAlloc(val);
|
IntPtr ele = ManagedToNativeAlloc(val);
|
||||||
|
@ -308,7 +308,7 @@ public class Array<T> : IEnumerable<T>, IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the element of the array at the specified position.
|
/// Returns the element of the array at the specified position.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="idx">The position of the desired element.</param>
|
/// <param name="idx">The position of the desired element.</param>
|
||||||
/// <returns>The element at the specified position</returns>
|
/// <returns>The element at the specified position</returns>
|
||||||
public T DataGet(int idx)
|
public T DataGet(int idx)
|
||||||
{
|
{
|
||||||
|
@ -319,7 +319,7 @@ public class Array<T> : IEnumerable<T>, IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the element of the array at the specified position.
|
/// Returns the element of the array at the specified position.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="idx">The position of the desired element.</param>
|
/// <param name="idx">The position of the desired element.</param>
|
||||||
/// <returns>The element at the specified position</returns>
|
/// <returns>The element at the specified position</returns>
|
||||||
public T At(int idx)
|
public T At(int idx)
|
||||||
{
|
{
|
||||||
|
@ -329,8 +329,8 @@ public class Array<T> : IEnumerable<T>, IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Replaces the element at the specified position.
|
/// Replaces the element at the specified position.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="idx">The position of the desired element.</param>
|
/// <param name="idx">The position of the desired element.</param>
|
||||||
///// <param name="val">The value of the element to be inserted.</param>
|
/// <param name="val">The value of the element to be inserted.</param>
|
||||||
public void DataSet(int idx, T val)
|
public void DataSet(int idx, T val)
|
||||||
{
|
{
|
||||||
IntPtr ele = InternalDataGet(idx); // TODO: check bondaries ??
|
IntPtr ele = InternalDataGet(idx); // TODO: check bondaries ??
|
||||||
|
|
|
@ -90,7 +90,7 @@ public class Binbuf : IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a new buffer with elements.
|
/// Create a new buffer with elements.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="bb">Elements to initialize the new buffer.</param>
|
/// <param name="bb">Elements to initialize the new buffer.</param>
|
||||||
public Binbuf(Binbuf bb)
|
public Binbuf(Binbuf bb)
|
||||||
{
|
{
|
||||||
InitNew();
|
InitNew();
|
||||||
|
@ -104,8 +104,8 @@ public class Binbuf : IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create a new buffer.
|
/// Create a new buffer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="handle">The native handle to be wrapped.</param>
|
/// <param name="handle">The native handle to be wrapped.</param>
|
||||||
///// <param name="own">Whether this wrapper owns the native handle.</param>
|
/// <param name="own">Whether this wrapper owns the native handle.</param>
|
||||||
public Binbuf(IntPtr handle, bool own)
|
public Binbuf(IntPtr handle, bool own)
|
||||||
{
|
{
|
||||||
Handle = handle;
|
Handle = handle;
|
||||||
|
@ -172,7 +172,7 @@ public class Binbuf : IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Appends a string of inputed buffer's length to the buffer, reallocating as necessary.
|
/// Appends a string of inputed buffer's length to the buffer, reallocating as necessary.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="str">The string buffer.</param>
|
/// <param name="str">The string buffer.</param>
|
||||||
/// <returns>true on success, false if data could not be appended.</returns>
|
/// <returns>true on success, false if data could not be appended.</returns>
|
||||||
public bool Append(byte[] str)
|
public bool Append(byte[] str)
|
||||||
{
|
{
|
||||||
|
@ -182,8 +182,8 @@ public class Binbuf : IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Appends a string of exact length to the buffer, reallocating as necessary.
|
/// Appends a string of exact length to the buffer, reallocating as necessary.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="str">The string buffer.</param>
|
/// <param name="str">The string buffer.</param>
|
||||||
///// <param name="length">The exact length to use.</param>
|
/// <param name="length">The exact length to use.</param>
|
||||||
/// <returns>true on success, false if data could not be appended.</returns>
|
/// <returns>true on success, false if data could not be appended.</returns>
|
||||||
public bool Append(byte[] str, uint length)
|
public bool Append(byte[] str, uint length)
|
||||||
{
|
{
|
||||||
|
@ -193,7 +193,7 @@ public class Binbuf : IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Appends a Binbuf to the buffer.
|
/// Appends a Binbuf to the buffer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="bb">The buffer to be appended.</param>
|
/// <param name="bb">The buffer to be appended.</param>
|
||||||
/// <returns>true on success, false if data could not be appended.</returns>
|
/// <returns>true on success, false if data could not be appended.</returns>
|
||||||
public bool Append(Binbuf bb)
|
public bool Append(Binbuf bb)
|
||||||
{
|
{
|
||||||
|
@ -203,7 +203,7 @@ public class Binbuf : IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Appends a character to the buffer, reallocating as necessary.
|
/// Appends a character to the buffer, reallocating as necessary.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="c">The char to appended.</param>
|
/// <param name="c">The char to appended.</param>
|
||||||
/// <returns>true on success, false if data could not be appended.</returns>
|
/// <returns>true on success, false if data could not be appended.</returns>
|
||||||
public bool Append(byte c)
|
public bool Append(byte c)
|
||||||
{
|
{
|
||||||
|
@ -213,7 +213,7 @@ public class Binbuf : IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Appends a slice to the buffer, reallocating as necessary.
|
/// Appends a slice to the buffer, reallocating as necessary.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="slice">The slice to appended.</param>
|
/// <param name="slice">The slice to appended.</param>
|
||||||
/// <returns>true on success, false if data could not be appended.</returns>
|
/// <returns>true on success, false if data could not be appended.</returns>
|
||||||
public bool Append(Eina.Slice slice)
|
public bool Append(Eina.Slice slice)
|
||||||
{
|
{
|
||||||
|
@ -223,8 +223,8 @@ public class Binbuf : IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Inserts a string of inputed buffer's length into the buffer, reallocating as necessary.
|
/// Inserts a string of inputed buffer's length into the buffer, reallocating as necessary.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="str">The string buffer.</param>
|
/// <param name="str">The string buffer.</param>
|
||||||
///// <param name="pos">The position to insert the string.</param>
|
/// <param name="pos">The position to insert the string.</param>
|
||||||
/// <returns>true on success, false if data could not be appended.</returns>
|
/// <returns>true on success, false if data could not be appended.</returns>
|
||||||
public bool Insert(byte[] str, uint pos)
|
public bool Insert(byte[] str, uint pos)
|
||||||
{
|
{
|
||||||
|
@ -234,9 +234,9 @@ public class Binbuf : IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Inserts a string of exact length into the buffer, reallocating as necessary.
|
/// Inserts a string of exact length into the buffer, reallocating as necessary.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="str">The string buffer.</param>
|
/// <param name="str">The string buffer.</param>
|
||||||
///// <param name="length">The exact length to use.</param>
|
/// <param name="length">The exact length to use.</param>
|
||||||
///// <param name="pos">The position to insert the string.</param>
|
/// <param name="pos">The position to insert the string.</param>
|
||||||
/// <returns>true on success, false if data could not be appended.</returns>
|
/// <returns>true on success, false if data could not be appended.</returns>
|
||||||
public bool Insert(byte[] str, uint length, uint pos)
|
public bool Insert(byte[] str, uint length, uint pos)
|
||||||
{
|
{
|
||||||
|
@ -246,8 +246,8 @@ public class Binbuf : IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Inserts a character into the buffer, reallocating as necessary.
|
/// Inserts a character into the buffer, reallocating as necessary.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="c">The char to appended.</param>
|
/// <param name="c">The char to appended.</param>
|
||||||
///// <param name="pos">The position to insert the string.</param>
|
/// <param name="pos">The position to insert the string.</param>
|
||||||
/// <returns>true on success, false if data could not be appended.</returns>
|
/// <returns>true on success, false if data could not be appended.</returns>
|
||||||
public bool Insert(byte c, uint pos)
|
public bool Insert(byte c, uint pos)
|
||||||
{
|
{
|
||||||
|
@ -257,8 +257,8 @@ public class Binbuf : IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Inserts a slice into the buffer, reallocating as necessary.
|
/// Inserts a slice into the buffer, reallocating as necessary.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="slice">The slice to appended.</param>
|
/// <param name="slice">The slice to appended.</param>
|
||||||
///// <param name="pos">The position to insert the string.</param>
|
/// <param name="pos">The position to insert the string.</param>
|
||||||
/// <returns>true on success, false if data could not be appended.</returns>
|
/// <returns>true on success, false if data could not be appended.</returns>
|
||||||
public bool Insert(Eina.Slice slice, uint pos)
|
public bool Insert(Eina.Slice slice, uint pos)
|
||||||
{
|
{
|
||||||
|
@ -268,10 +268,10 @@ public class Binbuf : IDisposable
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Removes a slice of the buffer.
|
/// Removes a slice of the buffer.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///// <param name="start">The initial (inclusive) slice position to start
|
/// <param name="start">The initial (inclusive) slice position to start
|
||||||
///// removing, in bytes.</param>
|
/// removing, in bytes.</param>
|
||||||
///// <param name="end">The final (non-inclusive) slice position to finish
|
/// <param name="end">The final (non-inclusive) slice position to finish
|
||||||
///// removing, in bytes..</param>
|
/// removing, in bytes..</param>
|
||||||
/// <returns>true on success, false on failure.</returns>
|
/// <returns>true on success, false on failure.</returns>
|
||||||
public bool Remove(uint start, uint end)
|
public bool Remove(uint start, uint end)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue